jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61828] New: Clear cookieManager manager will result null on subsequent calls
Date Tue, 28 Nov 2017 13:33:02 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61828

            Bug ID: 61828
           Summary: Clear cookieManager manager will result null on
                    subsequent calls
           Product: JMeter
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: aladd1n.n92@gmail.com
  Target Milestone: ---

Hi,

I'm trying to clear cookies for each 10 iteration for example;


        if (vars.getIteration() % 10) {

                HTTPSamplerBase sampler = ctx.getCurrentSampler();
                log.info(sampler.getName());
                CookieManager cookieManager =   sampler.getCookieManager();
                log.info(cookieManager+"");
                cookieManager.clear();

             }


On first call, say iteration 10 it works fine, but on the second one the
cookiemanager becomes null.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message