Hi to all. I'm new on this and a have a problem.
I put a http request with a Pre-processor(HTTP User Parameter Modifier) and
a post-processor(Regular Expression Extractor) inside on it. Also a "User
Defined Variables".
In the xml of the parameter modifier I put two variables: "ProjName" and
"Monto", which was send like parameter into the request.
In the "regular expression extractor" I also need send the ProjName variable
inside the regular expression. I put the data as follow:
Reference name: IDCOTIZ
Regular expression: ${ProjName}.+?PIdP"\svalue="(.+?)"
Template: $1$
Match No: 1
Default Value:
The text where extract the expression is this:
<td class="cellGrid" width="14%">cotizacion x-2</td>
<input type="hidden" name="PIdP" value="157" >
Here "cotizacion x-2" is the value defined in "ProjName" variable. The
expression to search is 157
"User Defined Variables" has only the IDCOTIZ variable defined on it,
without a value.
Later I put another http request, where the parameter to send is IDCOTIZ.
But through "View Results Tree" in the request field I saw that doesn't send
the correct IDCOTIZ parameter. It send this: ...&PIdP=159&...
That "159" value is the first value that found in the text, but that value
doesn't correspond to the "ProjName" value. It seems that the ProjName
variable was empty, then show the first expression that found.
My question is: How i can put the ProjName variable into the regular
expression?
Greets
--
View this message in context:
http://www.nabble.com/Problem-to-insert-variable-in-Regular-expression-tp14438420p14438420.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]