jakarta-jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject JMeter 2.3.1 bug in Cookie Manager "clear each iteration"
Date Fri, 14 Dec 2007 20:13:46 GMT
The Cookie Manager has an option to "Clear cookies each iteration".

Unfortunately,when the code was updated in 2.3.1 to allow pre-defined
cookies to be preserved, a bug was introduced.

The bug caused cookie handling to break - all threads end up sharing
the same cookies. [If "clear each iteration" is not selected, then
cookies are handled OK]

==

The code has been fixed, and will be in the next release. In the
meantime, if you need the feature, some workrounds are:

- use JMeter 2.3

-- or --

- add a BeanShell Pre-Processor to the FIRST sampler with the script:

sampler.getCookieManager().clear();

-- or --

- add a User Parameters Pre-Processor to the FIRST sampler:

Name: DUMMY
User_1: ${__jexl(sampler.getCookieManager().clear())}

[The name DUMMY could be any variable that you are not currently using]

Apologies for any inconvenience.

S///

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message