Hi,
I am writing a simple test script for testing a web application. I am trying
to extract a parameter from the response of a request and use it as part of
subsequent requests.
Example
------------
if the response had the following data:
.....<a href="something.com?param1="val1"¶m2="123456">...</a>.....
I want to extract 123456 which i know is going to be a 6 digit number. I
tried the following after adding a regular expresion extractor as the post
processor for the request obtaining this response.
Ref Name: ref1
Regular Expression: param2=([\d{6}])
Template: $1$
Match No: 0
Default Value:
That script is never successful and goes to the default value.
1) Is the script right or is there something else wrong?
2) Do i need to declare ref1 in the user variables component or is it
implicit once i give it as a ref name ( I tried both ways)
Any ideas would help. Thanks.
Surendra