jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Schumacher <felix.schumac...@internetallee.de>
Subject Re: Weird behaviour of CookieManager.clear()
Date Sat, 15 Feb 2020 13:14:11 GMT
Should we open a bug for this?

I have briefly looked into it and one thing that hit my eye, was that

clear() clears all values from the manager

testIterationStart(null) resets the values to start values (if the user
has given values to pre-fill)

Felix

Am 28.01.20 um 21:04 schrieb Philippe Mouawad:
> Hello,
> I was looking into clearing cookies at some step of my scenario.
>
> So under an HTTP Request I added a JSR PostProcessor , I called:
>
>    - sampler.getCookieManager().clear()
>
> But although it clears cookie it seems it breaks further iterations,
> Cookies are not added
> The workaround is to do this:
>
>    - sampler.getCookieManager().testIterationStart(null);
>
>
> Don't have time to investigate more deeply for now, just reporting not to
> forget it.
>
> Regards
> Philippe
> <https://www.openstreetmap.org/#map=18/50.69454/3.16455>
>

Mime
View raw message