Bug 64145

Summary: CookieManager cleanup in postprocessor behaves strangely
Product: JMeter Reporter: Felix Schumacher <felix.schumacher>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 5.2   
Target Milestone: JMETER_5.3.0   
Hardware: All   
OS: All   

Description Felix Schumacher 2020-02-15 13:19:22 UTC
Mail from Philippe on the dev mailing list:

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.
Comment 1 Philippe Mouawad 2020-02-15 13:21:48 UTC
Linking to what would be a nice enhancement: