jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Preserving 'logins' accross jmeter sessions
Date Mon, 03 Nov 2003 15:08:07 GMT
But how hard would it be?  Why couldn't the cookie manager 
serialize itself to a file and be reloaded by a different cookie 
manager?  If the manager is given a file, then they would all load 
state at the start of the test from the file, and at the end, dump their 
state.  Synchronize file access and treat the file contents as a 
queue/stack of cookie state (when a manager reads state, it also 
deletes that entry).  This could allow state to be carried over 
between jmeter runs and between threadgroups that are running 

Since this isn't the first time it's been asked for, it seems worthwhile 
to do.


On 3 Nov 2003 at 12:46, BAZLEY, Sebastian wrote:

> IMO, JMeter is not really designed for such usage ...
> Can you not use Response Assertions to do the checking instead 
of using the
> shell?
> Could you not build up a JMX file to contain all the tests?
> It is possible to use functions and variables to parameterise tests 
(see my
> posting in the thread RE: Using csv data as input)
> ==
> As to avoiding logging in each time, that depends entirely on the
> application you are testing, and how it determines whether you 
are still
> logged in.
> If it is not very secure, you might be able to extract one or more 
> (e.g. cookies or URLs) from the initial login session, and pass 
them to the
> next test.
> S.
> -----Original Message-----
> From: Karthik Viswanath []
> Sent: 03 November 2003 07:34
> To:
> Subject: Preserving 'logins' accross jmeter sessions
> Hi,
> I am trying to develop a test suite which involves execution of a 
> script followed by various verification steps for each testcase (in 
> shell script) Currently I am using the command line options to 
> the jmx script.
> However, when the jmx files are executed in a batch, it takes a 
> time to execute since
> 1. I am invoking jmeter from the command line for every jmx file 
> executed
> 2. I need to login for every testcase execution. (Our UI uses 
sockets to 
> detect active users)
> A sample batch would look like
> ./jmeter -n -t 1.jmx -l log.jtl -H <proxy>  -P 1080
> ./
> ./jmeter -n -t 2.jmx -l log.jtl -H <proxy>  -P 1080
> ./
> ...
> I would also like to know of any way to execute 2.jmx "without 
> in" again.
> Also any suggestions for a better approach than what I am 
> using would be very helpful.
> Thanks
> Karthik
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
> For additional commands, e-mail: jmeter-user-
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
> For additional commands, e-mail: jmeter-user-

Michael Stover
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

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

View raw message