jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 60986] New: CookieManager User-defined cookies aren't saved as variables
Date Thu, 13 Apr 2017 16:59:36 GMT

            Bug ID: 60986
           Summary: CookieManager User-defined cookies aren't saved as
           Product: JMeter
           Version: 3.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
  Target Milestone: ---

Setting 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.
View raw message