jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60986] New: CookieManager User-defined cookies aren't saved as variables
Date Thu, 13 Apr 2017 16:59:36 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60986

            Bug ID: 60986
           Summary: CookieManager User-defined cookies aren't saved as
                    variables
           Product: JMeter
           Version: 3.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: jepp@cas.org
  Target Milestone: ---

Setting CookieManager.save.cookies=true does not expose User-Defined Cookies as
variables.  This is very inconvenient, because the only way to get those values
otherwise (for example, if we want to pass them to the backend listener) is to
use a JSR223 post-processor from an HTTP sampler (otherwise, the CookieManager
is not available) and do one of three suboptimal things:

1. Import o.a.j.p.h.c.Cookie/CookieManager and loop iterate over the cookies by
index. (Notably, doesn't work if the cookie value is variable.)

2. Use regular-expression hacks on the output of
CookieManager.getCookieHeaderForURL() to extract the value.

3. Import the correct HttpClient CookieHandler and iterate over the list
returned from CookieHandler.getCookiesForUrl().

The CookieManager should make the _current value_ of a cookie available at all
times when that property is set.

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