You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Abel MacAdam <ab...@gmail.com> on 2008/07/04 14:09:36 UTC
Transaction ID and JMeter?
Hi,
The website I need to test consists of a transaction spanning several
webpages. Each webpage uses a variable to check if a user is not cutting
corners. This variable is generated each time a webpage is requested. Each
webpage has it's own variable (luckily with the same name), containing
something of a checksum, which is generated independently from a previous
one.
This is a piece of HTML code containing the variable:
<input type="hidden" name="ridiculesLongNumber"
value="4798eedff716037b6baf3d82016dbad4d5d590d16e83d6078b2d018b028992a6f549f41cd69fd9cff428eb3131046b5a4a610a7c16d440692302108d35b15d1db1537f74df6d600c15fae9772e007eb3b92c31adf316d64ea8dd60430ab02f7166a17bd82868cd05520d42e26ef65f805f908eadd3284af45172efc191edca5afdda108364bb84ecffb6b9b99483e5d94b99d4494be230e558b5c93a9e3e334d"
/>
When looking in the test script I recorded using Badboy and exported to
JMeter I read the following entry:
<testelement class="org.apache.jmeter.protocol.http.util.HTTPArgument">
<property name="HTTPArgument.always_encode">true</property>
<property
name="HTTPArgument.encoded_value">4798eedff716037b6baf3d82016dbad4d5d590d16e83d6078b2d018b028992a6f549f41cd69fd9cff428eb3131046b5a4a610a7c16d440692302108d35b15d1db1537f74df6d600c15fae9772e007eb3b92c31adf316d64ea8dd60430ab02f7166a17bd82868cd05520d42e26ef65f805f908eadd3284af45172efc191edca5afdda108364bb84ecffb6b9b99483e5d94b99d4494be230e558b5c93a9e3e334d</property>
<property
name="Argument.value">4798eedff716037b6baf3d82016dbad4d5d590d16e83d6078b2d018b028992a6f549f41cd69fd9cff428eb3131046b5a4a610a7c16d440692302108d35b15d1db1537f74df6d600c15fae9772e007eb3b92c31adf316d64ea8dd60430ab02f7166a17bd82868cd05520d42e26ef65f805f908eadd3284af45172efc191edca5afdda108364bb84ecffb6b9b99483e5d94b99d4494be230e558b5c93a9e3e334d</property>
<property name="Argument.name">ridiculesLongNumber</property>
<property name="HTTPArgument.encoded_name">ridiculesLongNumber</property>
</testelement>
What do I need to do to be able to find the value of this
"ridiculesLongNumber" from the html page I got and pass it back to the
server?
Abel.
--
View this message in context: http://www.nabble.com/Transaction-ID-and-JMeter--tp18278244p18278244.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: Transaction ID and JMeter?
Posted by sebb <se...@gmail.com>.
On 04/07/2008, Abel MacAdam <ab...@gmail.com> wrote:
>
> Hi,
>
> The website I need to test consists of a transaction spanning several
> webpages. Each webpage uses a variable to check if a user is not cutting
> corners. This variable is generated each time a webpage is requested. Each
> webpage has it's own variable (luckily with the same name), containing
> something of a checksum, which is generated independently from a previous
> one.
>
> This is a piece of HTML code containing the variable:
> <input type="hidden" name="ridiculesLongNumber"
> value="4798eedff716037b6baf3d82016dbad4d5d590d16e83d6078b2d018b028992a6f549f41cd69fd9cff428eb3131046b5a4a610a7c16d440692302108d35b15d1db1537f74df6d600c15fae9772e007eb3b92c31adf316d64ea8dd60430ab02f7166a17bd82868cd05520d42e26ef65f805f908eadd3284af45172efc191edca5afdda108364bb84ecffb6b9b99483e5d94b99d4494be230e558b5c93a9e3e334d"
> />
>
> When looking in the test script I recorded using Badboy and exported to
> JMeter I read the following entry:
> <testelement class="org.apache.jmeter.protocol.http.util.HTTPArgument">
> <property name="HTTPArgument.always_encode">true</property>
> <property
> name="HTTPArgument.encoded_value">4798eedff716037b6baf3d82016dbad4d5d590d16e83d6078b2d018b028992a6f549f41cd69fd9cff428eb3131046b5a4a610a7c16d440692302108d35b15d1db1537f74df6d600c15fae9772e007eb3b92c31adf316d64ea8dd60430ab02f7166a17bd82868cd05520d42e26ef65f805f908eadd3284af45172efc191edca5afdda108364bb84ecffb6b9b99483e5d94b99d4494be230e558b5c93a9e3e334d</property>
> <property
> name="Argument.value">4798eedff716037b6baf3d82016dbad4d5d590d16e83d6078b2d018b028992a6f549f41cd69fd9cff428eb3131046b5a4a610a7c16d440692302108d35b15d1db1537f74df6d600c15fae9772e007eb3b92c31adf316d64ea8dd60430ab02f7166a17bd82868cd05520d42e26ef65f805f908eadd3284af45172efc191edca5afdda108364bb84ecffb6b9b99483e5d94b99d4494be230e558b5c93a9e3e334d</property>
> <property name="Argument.name">ridiculesLongNumber</property>
> <property name="HTTPArgument.encoded_name">ridiculesLongNumber</property>
> </testelement>
>
> What do I need to do to be able to find the value of this
> "ridiculesLongNumber" from the html page I got and pass it back to the
> server?
>
Use the Regular Expression Extractor to extract and store the value in
a variable, and use the variable in the parameter definition.
> Abel.
>
> --
> View this message in context: http://www.nabble.com/Transaction-ID-and-JMeter--tp18278244p18278244.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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org