Hi Adrian,

thanks for your reply. But unfortunately what you suggest does not work for
us for the following reason.
The tests are supposed to run in multithreaded mode and every thread should
have each own http session. Which does not correspond to this: "...share the
session ID cookie
(JSESSIONID) among all your threads..."

I'll try to rephrase what we need. We have main test plan. It includes
set-up and tear-down test plans. 
We run the main test plan, say, in N threads. HTTP session should be shared
between set-up, tear-down and main test plans. But at the same time a given
HTTP session should be confined in a single thread. So in our example we are
going to have N HTTP sessions for N threads.
Set-up, tear-down tests and main test are in the separate jmx files.

Thanks,
Ivan.



Fitzpatrick, Adrian wrote:
> 
> 
> Hi,
> 
> I'll try and answer assuming your application is a J2EE web based
> application
> - if its different then this may not be correct but I think the principle
> should be broadly the same. 
> 
> Im also assuming based on your mail that you use a single JMETER thread to
> the set-up and tear-down steps, and multiple threads for the work in the
> middle.
> 
> Id reckon what you need to do you need to is share the session ID cookie
> (JSESSIONID) among all your threads. Im not 100% sure about how to do this
> but I think its something along the lines of:
> 
> - Include a regular expression extractor (or similar) within your setup
> script to extract the id of the session created by that script and save it
> to
> a variable
> 
> - Using this variable, include this JSESSIONID with all subsequent
> requests
> (from you main script). You could prob do this a number of different ways,
> including adding it as HTTP GET parameter to all URLS (i.e.
> http://localhost:80?JSESSIONID=XXXXXX) or as a HTTP POST param. There's
> prob
> a cleverer way to do this such that you dont have to modify all your main
> script requests, but I cant think of it right now!
> 
> Hope thats some help.
> 
> Regards,
> 
> Adrian
> 
> ************************
> 
> This message has been delivered to the Internet by the Revenue Internet
> e-mail service (OP)
> 
> *************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Need-an-advice-on-how-to-share-https-session-between-test-plans-tp20443509p20444329.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to