How is the Cookie generated initially?
Normally this is done via a login screen or similar, in which case
each thread can login, and then run the samples for that user with its
cookies.
If you don't need to logout, then use a test plan like this:
Thread Group, 10 threads, loop count as needed
+ Cookie Manager
+ Once Only controller
+ + Login
+ Sample1
+ Sample 2 ...
If you do need to logout, there is currently no equivalent of the Once
Only controller that runs at the end of the thread group loop count,
so you need to do something like this:
Thread Group, 10 threads, loop count = 1
+ Cookie Manager
+ Login
+ Loop controller, count >=1
+ + Sample1
+ + Sample 2 ...
+ Logout
[Or you could play with the If Controller and loop counts]
On 11/05/07, new2JM <[EMAIL PROTECTED]> wrote:
Thanks for your responses.. I will try these options and see...
Coming to the question "But I'm not clear why anyone would want to read
cookies from a file."....
We have a hoting environment where multiple clients will use the same JVM
and different DB server. Each Client is distinguised by thier client ID
which is stored in cookie(as well). My load test has to generate load for 10
clients simultaniously.. So, trhying to pass this clientId from file rather
than make a copy of JMeter for each client.
hope that makes sense..
Thanks
sebb-2 wrote:
>
> You may be able to get round this using the Header Manager:
>
> Set-Cookie ${variable}
>
> Make sure you only apply the Header Manager to the appropriate
> samples, otherwise the cookie may be sent to the wrong servers.
>
> Otherwise, you can add cookies to the Cookie Manager itself, but they
> will need to be fixed for the duration of the test run. You can use
> multiple cookie managers, but only one should be in scope for a given
> sampler.
>
> But I'm not clear why anyone would want to read cookies from a file.
>
> On 11/05/07, Alf Høgemark <[EMAIL PROTECTED]> wrote:
>>
>> Hi
>>
>> You seem to have hit the JMeter bug :
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=28715
>>
>> So currently, user variables does not work in HTTP Cookie Manager.
>>
>> Regards
>> Alf Hogemark
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/HTTP-Cookie-tf3723999.html#a10432218
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]