You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Stromas, Aaron (NIH/OD) [C]" <st...@od.nih.gov> on 2009/06/16 19:07:58 UTC
Populating HTTP request with values from page elements
Greetings,
I'm feeling my way around JMeter, so I apologise in advance if I'm asking ignorant questions. Basically, I have recorded a test plan using an HTTP proxy. Next, I modified it, so that each thread will invoke the test with a different parameter. After the initial request submitted, I need to populate the follow-up request with values form the page served as a response to the initial request, such as items from select elements. How can that be done? I assume there is some scripting involved. Please steer me in the right direction. TIA.
-a
RE: Populating HTTP request with values from page elements
Posted by "Stromas, Aaron (NIH/OD) [C]" <st...@od.nih.gov>.
Great! Thanks for the tip.
-a
-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com]
Sent: Tuesday, June 16, 2009 1:24 PM
To: JMeter Users List
Subject: Re: Populating HTTP request with values from page elements
hi
you use one of the Post Processor on the first request to extract the data
(Regex, Xpath, Beanshell), you store the extracted value into a variable and
then use ${variableName} in the next request.
regards
deepak
On Tue, Jun 16, 2009 at 10:07 AM, Stromas, Aaron (NIH/OD) [C] <
stromasam@od.nih.gov> wrote:
> Greetings,
>
> I'm feeling my way around JMeter, so I apologise in advance if I'm asking
> ignorant questions. Basically, I have recorded a test plan using an HTTP
> proxy. Next, I modified it, so that each thread will invoke the test with a
> different parameter. After the initial request submitted, I need to populate
> the follow-up request with values form the page served as a response to the
> initial request, such as items from select elements. How can that be done? I
> assume there is some scripting involved. Please steer me in the right
> direction. TIA.
>
> -a
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Populating HTTP request with values from page elements
Posted by Deepak Shetty <sh...@gmail.com>.
hi
you use one of the Post Processor on the first request to extract the data
(Regex, Xpath, Beanshell), you store the extracted value into a variable and
then use ${variableName} in the next request.
regards
deepak
On Tue, Jun 16, 2009 at 10:07 AM, Stromas, Aaron (NIH/OD) [C] <
stromasam@od.nih.gov> wrote:
> Greetings,
>
> I'm feeling my way around JMeter, so I apologise in advance if I'm asking
> ignorant questions. Basically, I have recorded a test plan using an HTTP
> proxy. Next, I modified it, so that each thread will invoke the test with a
> different parameter. After the initial request submitted, I need to populate
> the follow-up request with values form the page served as a response to the
> initial request, such as items from select elements. How can that be done? I
> assume there is some scripting involved. Please steer me in the right
> direction. TIA.
>
> -a
>