You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Edward_Herrera <ed...@gmail.com> on 2009/01/22 05:55:02 UTC
Log replay and user session
Hi, I want to perform a Log replay as is. The scenario is as follows
User1: login.jsp .........................(1)
User1: show_books.jsp
User2: login.jsp ..........................(2)
User1: buy_book.jsp
User2: myAccount.jsp
User1: logout.jsp
User2: logout.jsp
How can I do for preserving the execution order without losing the SessionID
for each User?
I try using a CookieManager but this works for all the HTTPRequest, The
CookieManager doesn't distinguish the login.jsp (1) from the login.jsp (2).
If I put each User in one separate thread then the concurrent execution
could change the execution order that I want to preserve.
Thanks in advance.
--
View this message in context: http://www.nabble.com/Log-replay-and-user-session-tp21595965p21595965.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Log replay and user session
Posted by sebb <se...@gmail.com>.
On 22/01/2009, Edward_Herrera <ed...@gmail.com> wrote:
>
> Yes, I was using the Access Log Sampler but it didn't work as I wanted, so I
> added a thread group a cookie manager and then wrote each request using the
> HTTP Request and the result was the same, the cookie manager worked for all
> the HTTP Request. Is there another way to do it?
In theory yes - you can write your own Access Log filter.
If the test really is a short as you wrote, you might be able to set
up a separate thread group with 1 thread for each user, and use timers
to ensure that the correct order is maintained.
> I need to preserve the execution order to debug an application.
>
Understood, but JMeter was designed to simulate independent users and
does not currently offer support for dependencies between threads.
>
>
> sebb-2-2 wrote:
> >
> > On 22/01/2009, Edward_Herrera <ed...@gmail.com> wrote:
> >>
> >> Hi, I want to perform a Log replay as is. The scenario is as follows
> >>
> >> User1: login.jsp .........................(1)
> >> User1: show_books.jsp
> >> User2: login.jsp ..........................(2)
> >> User1: buy_book.jsp
> >> User2: myAccount.jsp
> >> User1: logout.jsp
> >> User2: logout.jsp
> >>
> >> How can I do for preserving the execution order without losing the
> >> SessionID
> >> for each User?
> >> I try using a CookieManager but this works for all the HTTPRequest, The
> >> CookieManager doesn't distinguish the login.jsp (1) from the login.jsp
> >> (2).
> >> If I put each User in one separate thread then the concurrent execution
> >> could change the execution order that I want to preserve.
> >
> > I assume that you are using the Access Log sampler?
> >
> > I'm afraid that does not (yet) have support for multiple users.
> >
> > It is not going to be trivial to implement this.
> >
> >> Thanks in advance.
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Log-replay-and-user-session-tp21595965p21595965.html
> >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
>
>
> --
> View this message in context: http://www.nabble.com/Log-replay-and-user-session-tp21595965p21604108.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Log replay and user session
Posted by Edward_Herrera <ed...@gmail.com>.
Yes, I was using the Access Log Sampler but it didn't work as I wanted, so I
added a thread group a cookie manager and then wrote each request using the
HTTP Request and the result was the same, the cookie manager worked for all
the HTTP Request. Is there another way to do it?
I need to preserve the execution order to debug an application.
sebb-2-2 wrote:
>
> On 22/01/2009, Edward_Herrera <ed...@gmail.com> wrote:
>>
>> Hi, I want to perform a Log replay as is. The scenario is as follows
>>
>> User1: login.jsp .........................(1)
>> User1: show_books.jsp
>> User2: login.jsp ..........................(2)
>> User1: buy_book.jsp
>> User2: myAccount.jsp
>> User1: logout.jsp
>> User2: logout.jsp
>>
>> How can I do for preserving the execution order without losing the
>> SessionID
>> for each User?
>> I try using a CookieManager but this works for all the HTTPRequest, The
>> CookieManager doesn't distinguish the login.jsp (1) from the login.jsp
>> (2).
>> If I put each User in one separate thread then the concurrent execution
>> could change the execution order that I want to preserve.
>
> I assume that you are using the Access Log sampler?
>
> I'm afraid that does not (yet) have support for multiple users.
>
> It is not going to be trivial to implement this.
>
>> Thanks in advance.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Log-replay-and-user-session-tp21595965p21595965.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Log-replay-and-user-session-tp21595965p21604108.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Log replay and user session
Posted by sebb <se...@gmail.com>.
On 22/01/2009, Edward_Herrera <ed...@gmail.com> wrote:
>
> Hi, I want to perform a Log replay as is. The scenario is as follows
>
> User1: login.jsp .........................(1)
> User1: show_books.jsp
> User2: login.jsp ..........................(2)
> User1: buy_book.jsp
> User2: myAccount.jsp
> User1: logout.jsp
> User2: logout.jsp
>
> How can I do for preserving the execution order without losing the SessionID
> for each User?
> I try using a CookieManager but this works for all the HTTPRequest, The
> CookieManager doesn't distinguish the login.jsp (1) from the login.jsp (2).
> If I put each User in one separate thread then the concurrent execution
> could change the execution order that I want to preserve.
I assume that you are using the Access Log sampler?
I'm afraid that does not (yet) have support for multiple users.
It is not going to be trivial to implement this.
> Thanks in advance.
>
> --
> View this message in context: http://www.nabble.com/Log-replay-and-user-session-tp21595965p21595965.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org