Setting JMeter CookieManager policy property value

256 views
Skip to first unread message

awan...@gmail.com

unread,
Jul 26, 2017, 4:01:42 PM7/26/17
to codename-taurus
Hello there,

I'm having an issue where when attempting to set the CookieManager property via setting:

---
modules:
  jmeter:
    properties:
      Cookiemanager:
        policy: standard


The property value shows up in the bzt properties files, and effective.yml, but the jmx that gets generated does not include the property value, so the test defaults to using "compatibility" instead of "standard" as the policy, which is causing the tests to fail due to configuration with our environments.

Is there any way to properly set this value, or am I doomed to modifying the the requests.jmx file and running that?  

Andrey Pokhilko

unread,
Jul 28, 2017, 6:37:19 AM7/28/17
to codenam...@googlegroups.com

Hi,

As far as I know, there is no such property in JMeter properties. If you want to set this option for Cookie Manager, you'd have to use "modifications" feature of Taurus: http://gettaurus.org/docs/JMeter/#Modifications-for-Existing-Scripts

You'd need to use "set-prop" modification with name of your cookie manager to set the "policy". Something like this:

scenarios:
  modification_example:
    script: tests/jmx/dummy.jmx

    modifications:
      set-prop:  # Set element properties, selected as [Element Name]>[property name]
        "Cookies>CookieManager.policy": "standard"

Assuming your cookie manager is named "Cookies".

--
Andrey


On 07/26/2017 11:01 PM, awan...@gmail.com wrote:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/114b041f-5743-4f88-8489-ec747ff2dd28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

awan...@gmail.com

unread,
Jul 28, 2017, 11:01:50 AM7/28/17
to codename-taurus, Andrey....@contractor.ca.com
I'll give this a try and let you know how it went - the Cookie Manager that I'm referencing is here: http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cookie_Manager
Reply all
Reply to author
Forward
0 new messages