You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Mahesh Kharat <ma...@gmail.com> on 2010/02/17 14:24:10 UTC
How to get particular Id generated in a process from server??
Hello,
I have recorded some scenarios using Badboy tool for one application. Then
this script i have exported to Jmeter. Now i have to perform load testing on
it with more than 1 user. But i m right now cheking for just 1 user only. So
user related data i have entered in 1 file. Then using User Parameters i
have collected in this jmeter script. When i run normal application without
using jmeter server creates transaction id . When i run this jmeter script i
m not able to retrieve this transaction id so my jmeter script is also
failing. How to retrieve this transaction id from server??
--
View this message in context: http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27623585.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: How to get particular Id generated in a process from server??
Posted by Deepak Shetty <sh...@gmail.com>.
hi
>But in this process for each user how i m going to retrieve each
transaction id from server side.
The same way your browser does. You make a request , you get a response.
Each User = Each Session which in Jmeter usually maps to a thread (with a
cookie manager to maintain a session id , per thread). What request in the
flow you mentioned below gives you back the transaction id?
>So my requirement is to retrieve transaction id from response which is
encrypted.
So are you getting back an encrypted transaction id ? If yes then what does
the browser do with it? It either sends back the encrypted value(iun which
case you dont need to do anything) , or it must have some javascript to
decrypt the value. if there is javascript , you will have to replicate it in
beanshell or equivalent to decrypt. If by encryption you mean HTTPS then you
dont have to worry , because Jmeter will see the unencrypted value.
Study your application first , whats the request / response and then check
Jmeter with View Results Tree Listener to verify the request/response.
regards
deepak
On Thu, Feb 18, 2010 at 1:54 AM, Mahesh Kharat <ma...@gmail.com>wrote:
>
>
> Hello Deepak,
> I have tried Regular Expression Extractor but i m not able to get
> transaction id from the response.
> The scenario for Booking flight is like this :
> 1.User searches available flights according to his requirements.
> 2.User enters his/her details.
> 3.User's booking is confirmed after payment.
>
> In this process,Transaction Id is generated on server for any booking which
> is unique.
>
> Same i want to test for different no of users(want to apply load) using
> jmeter script. So i m providing User Details from some files using User
> Parameters. But in this process for each user how i m going to retrieve
> each
> transaction id from server side. So that flight booking process is tested
> successfully for any no of users.
>
> So my requirement is to retrieve transaction id from response which is
> encrypted.
>
>
>
> Deepak Shetty wrote:
> >
> > see http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour on how to
> > debug
> > cases where the browser has different behavior than the jmeter script.
> > Also
> > search the archives
> >
> > On Wed, Feb 17, 2010 at 5:24 AM, Mahesh Kharat
> > <ma...@gmail.com>wrote:
> >
> >>
> >> Hello,
> >> I have recorded some scenarios using Badboy tool for one application.
> >> Then
> >> this script i have exported to Jmeter. Now i have to perform load
> testing
> >> on
> >> it with more than 1 user. But i m right now cheking for just 1 user
> only.
> >> So
> >> user related data i have entered in 1 file. Then using User Parameters i
> >> have collected in this jmeter script. When i run normal application
> >> without
> >> using jmeter server creates transaction id . When i run this jmeter
> >> script
> >> i
> >> m not able to retrieve this transaction id so my jmeter script is also
> >> failing. How to retrieve this transaction id from server??
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27623585.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
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27636474.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: How to get particular Id generated in a process from server??
Posted by Brett Cave <br...@gmail.com>.
hi,
using a property file with -p or -q doesnt set global vars that is sent to
servers, have found an issue like this, but did find that if i wanted to set
variables when running in distributed mode, i have to use -G parameter (as
apposed to -J).
I previously sent a script im using (bash) to parse properties from a file
into -G format command line options, something like:
for var in `grep -vE "^#|^$" /path/to/file.properties`; do
PARAMS="-G${var} ${PARAMS}"
done
jmeter ${PARAMS}
On Thu, Feb 18, 2010 at 11:54 AM, Mahesh Kharat <ma...@gmail.com>wrote:
>
>
> Hello Deepak,
> I have tried Regular Expression Extractor but i m not able to get
> transaction id from the response.
> The scenario for Booking flight is like this :
> 1.User searches available flights according to his requirements.
> 2.User enters his/her details.
> 3.User's booking is confirmed after payment.
>
> In this process,Transaction Id is generated on server for any booking which
> is unique.
>
> Same i want to test for different no of users(want to apply load) using
> jmeter script. So i m providing User Details from some files using User
> Parameters. But in this process for each user how i m going to retrieve
> each
> transaction id from server side. So that flight booking process is tested
> successfully for any no of users.
>
> So my requirement is to retrieve transaction id from response which is
> encrypted.
>
>
>
> Deepak Shetty wrote:
> >
> > see http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour on how to
> > debug
> > cases where the browser has different behavior than the jmeter script.
> > Also
> > search the archives
> >
> > On Wed, Feb 17, 2010 at 5:24 AM, Mahesh Kharat
> > <ma...@gmail.com>wrote:
> >
> >>
> >> Hello,
> >> I have recorded some scenarios using Badboy tool for one application.
> >> Then
> >> this script i have exported to Jmeter. Now i have to perform load
> testing
> >> on
> >> it with more than 1 user. But i m right now cheking for just 1 user
> only.
> >> So
> >> user related data i have entered in 1 file. Then using User Parameters i
> >> have collected in this jmeter script. When i run normal application
> >> without
> >> using jmeter server creates transaction id . When i run this jmeter
> >> script
> >> i
> >> m not able to retrieve this transaction id so my jmeter script is also
> >> failing. How to retrieve this transaction id from server??
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27623585.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
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27636474.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: How to get particular Id generated in a process from server??
Posted by Mahesh Kharat <ma...@gmail.com>.
Hello Deepak,
I have tried Regular Expression Extractor but i m not able to get
transaction id from the response.
The scenario for Booking flight is like this :
1.User searches available flights according to his requirements.
2.User enters his/her details.
3.User's booking is confirmed after payment.
In this process,Transaction Id is generated on server for any booking which
is unique.
Same i want to test for different no of users(want to apply load) using
jmeter script. So i m providing User Details from some files using User
Parameters. But in this process for each user how i m going to retrieve each
transaction id from server side. So that flight booking process is tested
successfully for any no of users.
So my requirement is to retrieve transaction id from response which is
encrypted.
Deepak Shetty wrote:
>
> see http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour on how to
> debug
> cases where the browser has different behavior than the jmeter script.
> Also
> search the archives
>
> On Wed, Feb 17, 2010 at 5:24 AM, Mahesh Kharat
> <ma...@gmail.com>wrote:
>
>>
>> Hello,
>> I have recorded some scenarios using Badboy tool for one application.
>> Then
>> this script i have exported to Jmeter. Now i have to perform load testing
>> on
>> it with more than 1 user. But i m right now cheking for just 1 user only.
>> So
>> user related data i have entered in 1 file. Then using User Parameters i
>> have collected in this jmeter script. When i run normal application
>> without
>> using jmeter server creates transaction id . When i run this jmeter
>> script
>> i
>> m not able to retrieve this transaction id so my jmeter script is also
>> failing. How to retrieve this transaction id from server??
>> --
>> View this message in context:
>> http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27623585.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
>>
>>
>
>
--
View this message in context: http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27636474.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: How to get particular Id generated in a process from server??
Posted by Deepak Shetty <sh...@gmail.com>.
see http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour on how to debug
cases where the browser has different behavior than the jmeter script. Also
search the archives
On Wed, Feb 17, 2010 at 5:24 AM, Mahesh Kharat <ma...@gmail.com>wrote:
>
> Hello,
> I have recorded some scenarios using Badboy tool for one application. Then
> this script i have exported to Jmeter. Now i have to perform load testing
> on
> it with more than 1 user. But i m right now cheking for just 1 user only.
> So
> user related data i have entered in 1 file. Then using User Parameters i
> have collected in this jmeter script. When i run normal application without
> using jmeter server creates transaction id . When i run this jmeter script
> i
> m not able to retrieve this transaction id so my jmeter script is also
> failing. How to retrieve this transaction id from server??
> --
> View this message in context:
> http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27623585.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: How to get particular Id generated in a process from server??
Posted by Mahesh Kharat <ma...@gmail.com>.
Thank you very much Deepak.
I have solved my problem related to Regular Expression Extractor.
Mahesh Kharat wrote:
>
> Hello,
> I have recorded some scenarios using Badboy tool for one application. Then
> this script i have exported to Jmeter. Now i have to perform load testing
> on it with more than 1 user. But i m right now cheking for just 1 user
> only. So user related data i have entered in 1 file. Then using User
> Parameters i have collected in this jmeter script. When i run normal
> application without using jmeter server creates transaction id . When i
> run this jmeter script i m not able to retrieve this transaction id so my
> jmeter script is also failing. How to retrieve this transaction id from
> server??
>
--
View this message in context: http://old.nabble.com/How-to-get-particular-Id-generated-in-a-process-from-server---tp27623585p27700635.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