You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Joseph chowalloor <jo...@usswi.com> on 2003/01/21 10:47:29 UTC

Jmeter -SESSION problem

Hi
I'm using jmeter to test my J2ee application.The problem im facing is that each request is going have different session id .In the application code there are instances where I use session.getAttribute() that code wont work since each request is of different session id
Is there any way to test the application  as if from one browser session
Regards
Joseph

RE: Jmeter -SESSION problem

Posted by "S. Suhasini" <su...@cmcltd.com>.
I used HttpCookieManager element in testing of an application which
stores session variables data. It worked. You can refer to the user
manual for HttpCookieManager.

> -----Original Message-----
> From: Joseph chowalloor [mailto:joseph_chowalloor@usswi.com] 
> Sent: Tuesday, January 21, 2003 3:52 PM
> To: JMeter Users List
> Subject: Re: Jmeter -SESSION problem
> 
> 
> But im not using Cookie in my code...I 'm storing some 
> objects in the session object.When try to retrieve it throws 
> null pointer exception since its a different session. Thanks Joseph
> 
> ----- Original Message -----
> From: "S. Suhasini" <su...@cmcltd.com>
> To: "'JMeter Users List'" <jm...@jakarta.apache.org>
> Sent: Tuesday, April 01, 2003 3:25 PM
> Subject: RE: Jmeter -SESSION problem
> 
> 
> > You can add HttpCookieManager config element to the Thread 
> Group. It 
> > will work.
> >
> > > -----Original Message-----
> > > From: Joseph chowalloor [mailto:joseph_chowalloor@usswi.com]
> > > Sent: Tuesday, January 21, 2003 3:17 PM
> > > To: jmeter-user@jakarta.apache.org
> > > Subject: Jmeter -SESSION problem
> > >
> > >
> > > Hi
> > > I'm using jmeter to test my J2ee application.The problem 
> im facing 
> > > is that each request is going have different session id .In the 
> > > application code there are instances where I use
> > > session.getAttribute() that code wont work since each 
> request is of 
> > > different session id Is there any way to test the 
> application  as if 
> > > from one browser session Regards Joseph
> > >
> >
> >
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter -SESSION problem

Posted by Joseph chowalloor <jo...@usswi.com>.
But im not using Cookie in my code...I 'm storing some objects in the
session object.When try to retrieve it throws null pointer exception since
its a different session.
Thanks
Joseph

----- Original Message -----
From: "S. Suhasini" <su...@cmcltd.com>
To: "'JMeter Users List'" <jm...@jakarta.apache.org>
Sent: Tuesday, April 01, 2003 3:25 PM
Subject: RE: Jmeter -SESSION problem


> You can add HttpCookieManager config element to the Thread Group. It
> will work.
>
> > -----Original Message-----
> > From: Joseph chowalloor [mailto:joseph_chowalloor@usswi.com]
> > Sent: Tuesday, January 21, 2003 3:17 PM
> > To: jmeter-user@jakarta.apache.org
> > Subject: Jmeter -SESSION problem
> >
> >
> > Hi
> > I'm using jmeter to test my J2ee application.The problem im
> > facing is that each request is going have different session
> > id .In the application code there are instances where I use
> > session.getAttribute() that code wont work since each request
> > is of different session id Is there any way to test the
> > application  as if from one browser session Regards Joseph
> >
>
>
> ---------------------------------------------------------------------
> 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: Jmeter -SESSION problem

Posted by "S. Suhasini" <su...@cmcltd.com>.
You can add HttpCookieManager config element to the Thread Group. It
will work.

> -----Original Message-----
> From: Joseph chowalloor [mailto:joseph_chowalloor@usswi.com] 
> Sent: Tuesday, January 21, 2003 3:17 PM
> To: jmeter-user@jakarta.apache.org
> Subject: Jmeter -SESSION problem
> 
> 
> Hi
> I'm using jmeter to test my J2ee application.The problem im 
> facing is that each request is going have different session 
> id .In the application code there are instances where I use 
> session.getAttribute() that code wont work since each request 
> is of different session id Is there any way to test the 
> application  as if from one browser session Regards Joseph
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org