Using Jmeter 2.12, what can cause cookies to fail before reset during JMeter Loop Controller? I tried everything I could think of, but each time in the loop one of the cookies from the previous entry remains. This is actually not like cookies.
This is how I put together my loop:
Thread Group 1 -- Loop Controller (3x) -- Simple Controller -- HTTP Header Manager -- HTTP Cookie Manger (with 'Clear cookies each iteration?' enabled) -- BeanShell sampler - with code that tries to clear all cookies -- HTTP /login (gets cookies and auth headers) -- ... various HTTP Samplers ... -- HTTP /logout
I tried adding a Beanshell sampler with this code (as shown above), but it does nothing:
import org.apache.jmeter.protocol.http.control.CookieManager; import org.apache.jmeter.protocol.http.control.HeaderManager; CookieManager cManager = sampler.getCookieManager(); cManager.clear(); HeaderManager hManager = sampler.getHeaderManager(); hManager.clear();
source share