Bug 53648 - Add ability to read cookies from access log in Access Log Sampler
Summary: Add ability to read cookies from access log in Access Log Sampler
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: unspecified
Hardware: Macintosh Mac OS X 10.4
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-02 22:35 UTC by Jay Sellers
Modified: 2012-08-02 22:42 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Sellers 2012-08-02 22:35:38 UTC
I would like the ability to use the AccessLogSampler to generate http requests, but I want the requests to use the cookies that were logged in the access log as well.
Maybe allowing users to state where in the log line the cookies are. You could ask for that information in a number of ways. For me, my LogFormat is:


"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined


An example log line:
1.2.3.4 - - [31/Jul/2012:23:04:06 -0400] "GET /someurl/ HTTP/1.1" 200 28 "http:/domain/endpoint?params" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11" "cookie1=value1;cookie2=value2"


So maybe an optional configuration parameter could be the LogFormat, or simply stating which group of characters surrounded by "" are the cookies. For the example above it would be 4.
Comment 1 Jay Sellers 2012-08-02 22:42:24 UTC
Adding link to original conversation
http://stackoverflow.com/questions/11784019/jmeter-how-to-use-cookies-from-an-access-log-for-load-testing