Hi
you should be able to just check the CookieManager clear cookie after every
iteration ..

FYI the way to do it in Beanshell would be to attach a preprocessor to the
sampler before which you want the cookies to be cleared and use
*sampler*.*getCookieManager*().*clear*()

regards
deepak

On Thu, Nov 12, 2009 at 11:35 AM, gubbu gubbu <[email protected]> wrote:

> Thanks Deepak. My requirement is say for example I have set 1 user and 5
> iteration . I would like the cookie value to be changed after each iteration
> so I can exercise all the 4 jvms. It should start with ap1jvm1 and go
> through the cycle .
> Gubs
>
>
>
>
> ________________________________
> From: Deepak Shetty <[email protected]>
> To: JMeter Users List <[email protected]>
> Sent: Thu, November 12, 2009 11:29:15 AM
> Subject: Re: Setting up cookie
>
> See if
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager
> Clear Cookies after every iteration works for you (cookies are stored per
> thread so multiple threads arent a problem and will goto ifferent vm's
> assuming your loadbablancer is set that way)
> If you need to do it on demand then you can use beanshell to clear the
> cookie manager
> regards
> deepak
>
> On Thu, Nov 12, 2009 at 10:57 AM, gubbu gubbu <[email protected]>
> wrote:
>
> > Hi ,
> > I have a few appservers each running a couple of jvms. For example
> > ap1jvm1
> > ap1jvm2
> > ap2jvm1
> > ap2jvm2
> >
> > When a request is made to server the user gets stuck to a jvm and a
> cookie
> > is set for example "ABCsession:ap1jvm1" or "ABCsession:ap2jvm2" . I
> created
> > a jmeter test which login in a user and does some transactions and logs
> out
> > and it works fine . However I do not have the contril for a particular
> > thread to land on a particular jvm . I am using the generi HTTP cookie
> > manager .
> >
> > How can I control so I can explicitly clear the cookie and then set a new
> > cookie so I can go to each jvm and touch them ?
> >
> > thanks
> > Gubs
> >
> >
> >
> >
>
>
>
>
>

Reply via email to