I wanted to do the same thing and found this in the archives:
To display a variable value while a test plan is running, follow these
steps.
1. Add a Java Request element (a Sampler) to the test plan after the
point in the test plan
where the variable is defined by an element or a function.
2. In the Java Request, do the following:
a. Set the Label parameter to display the variable name and variable
value. For example:
MyVariable: ${MyVariable}
b. Set the Status parameter to "OK" or "FAIL".
"OK" allows the test plan execution to continue.
"FAIL" forces test plan execution to stop.
3 Add a View Results in Table element (a Listener) to the test plan.
4. Run the test plan.
The View Results in Table element displays the Java Request
response with the variable name
and variable value.
Hope this helps.
Eric
"Modha Khammammettu" <[EMAIL PROTECTED]>
11/12/2007 01:59 PM
Please respond to
"JMeter Users List" <[email protected]>
To
<[email protected]>
cc
Subject
Printing Regular Expression Value
Hi All
Is there a way I can know what is the value of a Variable from a regular
expression:
Ex: If I set regular expression as
Variable: VALUE (for example)
RE: <option value="(Person:\d+)">ITEM A</option>
Template: $1$
Match: 1
How can I know what is the content of the Variable "VALUE" during its
execution.
Please let me know.
Thanks
Modha/-