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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
07/22/2007 09:04 PM
Please respond to
"JMeter Users List" <[email protected]>
To
"JMeter Users List" <[email protected]>
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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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