I am new to JMeter, and I have read the user manual and searched for
answer on Internet, so far I haven't found anyway to get my problem
solved. I would really appreciate any input here.
 
 
I am trying to extract a value string which contains a '$' from a
response of HTTP Request. The response data is something like:
 
<a
href="contract.terms.ViewTermDetails.do?init=true&contractHandle=$7.301e
">
 
 
I wanted to extract the value of contractHandle --- $7.301e, and use
them as parameter/value to be passed in my next HTTP Request
 
http://localhost:7001/opal/contract.terms.ViewTermDetails.do?init=true&&;
contractHandle=$7.301e
 
My Regular Expression Extractor that I added in the first HTTP Request
is like:
 
Regular Expression: contractHandle=([$].*)">        --- I also tried
with contractHandle=(.*)">, and did not make difference
Template is: $1$
Match No is: 1
Reference Name: contractHandle
Default: contractHandleDidNotMatch
 
I am using the reference in the next HTTP Request parameter list:
 
Name: contractHandle
Value: ${contractHandle}
 
But what I got in the next request data is:
 
http://localhost:7001/opal/contract.terms.ViewTermDetails.do?init=true
<http://localhost:7001/opal/contract.terms.ViewTermDetails.do?init=true&;
contractHandle=%247.301e> &contractHandle=%247.301e
 
It looks like that somehow the literal '$' became '%24'. I did not get
the failed value, so I assume the regular expression is ok. 
 
How can I keep the '$' in the value I extracted? Any help would be
appreciated.
 
-Cecilia 

Reply via email to