jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Smith <>
Subject Session ID help..
Date Mon, 19 Jul 2004 13:05:49 GMT

The site I am trying to test uses a jsessionid to maintain a session
instance.  I'm trying to set up a test that uses 10 threads, and 10 unique
users to log in to a site and access three pages.  My understanding of my
project is as follows:

-	HTTP request sampler makes GET call (all of this is via HTTP
incidentally):  GET <>  (e.g. URL)
-	The response includes a JSESSIONID in the Sampler Result
-	There is a HTTP URL Re-writing modifier which should parse the
JSESSIONID, it has a session argument name "jsessionid"
-	Another HTTP request samples makes a get call and appears to add the
jsessionid on the end - POST
BF7EED0142F4A5E>.  Note that the response does NOT include the jsessionid
-	So all good so far!
-	Then I have another HTTP sampler, however, the request looks like
this POST <;jsessionid>=

So, I am guessing that the re-writing modifier needs the param to be
returned every time?  I tried to use a regex extractor instead by adding
this to the first samples.  However, I cannot get this to work either...
Although this is my first attempt at regex, I am using
jsessionid=([0-9A-Z]); to try and parse from:

Load time: 16
HTTP response code: 200
HTTP response message: OK

HTTP response headers:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 19 Jul 2004 09:27:26 GMT
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 01:00:00 GMT
Set-Cookie: JSESSIONID=FAE7EDC8E0F20B552BAF99EFF4552D70; Path=/; Secure
Content-Type: text/html;charset=UTF-8
Content-Length: 3640

At the end of this my node tree is looking like this:

-Thread group
	-HTTP request defaults
	-Simple controller
		-HTTP sampler
			-Response Assertion
			-Regex extractor
			-Assertion results
		-HTTP sampler
		-HTTP sampler
		-View results tree
		-HTTP URL re-writing modifier
		-HTTP Header manager

Any help anyone can give would be very much appreciated! 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message