You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by TM...@etq.com on 2007/07/22 14:38:59 UTC
Return a data!
Hello,
can any one tell whether we can use jmeter to return a data (value for
certain parameter) from a requested page and use it in another http
request.
thanks,
Thaer.
Re: Return a data!
Posted by keerat <ke...@gmail.com>.
Yes- in exactly the same fashion.
After your HTTP Sampler, add a Regular Expression Extractor.
Note the Reference Name (assume you call it: regexName).
Add in the appropriate regular expression. Typically something like this:
form.name="foo".action="(.+)"
You'd be matching on the template $1$, and you'd probably want a specific
(typically first) match.
In a subsequent HTTP sampler, fire the HTTP request using the reference name
you defined in the regex extractor as ${regexName}.
You'll need to tweak the GET/POST options, and perhaps add in another regex
to pull out the requisite POST params that you might need and submit them
with the same naming convention as a request parameter.
On 7/23/07, TMustafa@etq.com <TM...@etq.com> wrote:
>
> Thank you, also I like to ask if we can get a data from the response of
> the first http request and use it in the next http request.
>
>
>
>
> regards,
>
> Thaer.
>
>
>
>
> keerat <ke...@gmail.com>
> 07/22/2007 09:04 PM
> Please respond to
> "JMeter Users List" <jm...@jakarta.apache.org>
>
>
> To
> "JMeter Users List" <jm...@jakarta.apache.org>
> cc
>
> Subject
> Re: Return a data!
>
>
>
>
>
>
> Absolutely. Use the regular expression extractor to create a variable that
> stores the form action, and another to extract a variable (if you have
> choices), and reference the above in a subsequent HTTP request sampler.
>
> On 7/22/07, TMustafa@etq.com <TM...@etq.com> wrote:
> >
> > Hello,
> >
> > can any one tell whether we can use jmeter to return a data (value for
> > certain parameter) from a requested page and use it in another http
> > request.
> >
> >
> > thanks,
> >
> > Thaer.
>
>
>
>
> --
> http://recursor.blogspot.com
>
>
--
http://recursor.blogspot.com
Re: Return a data!
Posted by TM...@etq.com.
Thank you, also I like to ask if we can get a data from the response of
the first http request and use it in the next http request.
regards,
Thaer.
keerat <ke...@gmail.com>
07/22/2007 09:04 PM
Please respond to
"JMeter Users List" <jm...@jakarta.apache.org>
To
"JMeter Users List" <jm...@jakarta.apache.org>
cc
Subject
Re: Return a data!
Absolutely. Use the regular expression extractor to create a variable that
stores the form action, and another to extract a variable (if you have
choices), and reference the above in a subsequent HTTP request sampler.
On 7/22/07, TMustafa@etq.com <TM...@etq.com> wrote:
>
> Hello,
>
> can any one tell whether we can use jmeter to return a data (value for
> certain parameter) from a requested page and use it in another http
> request.
>
>
> thanks,
>
> Thaer.
--
http://recursor.blogspot.com
Re: Return a data!
Posted by keerat <ke...@gmail.com>.
Absolutely. Use the regular expression extractor to create a variable that
stores the form action, and another to extract a variable (if you have
choices), and reference the above in a subsequent HTTP request sampler.
On 7/22/07, TMustafa@etq.com <TM...@etq.com> wrote:
>
> Hello,
>
> can any one tell whether we can use jmeter to return a data (value for
> certain parameter) from a requested page and use it in another http
> request.
>
>
> thanks,
>
> Thaer.
--
http://recursor.blogspot.com