Hello,
I am trying to fetch an Id using regexp extractor.
The sampler in which i am intending to replace the Id with my reference
variable is the first sampler in my test plan.
So where should i add the regexp extractor?
1. Is it just before my first sampler?
2. Should i add it to the testplan along with the configuration elements
globally?
Currently i m placing it just before the first sampler and it picks the default
value entered in the regexp extractor.
<INPUT TYPE="hidden" NAME="modId" VALUE="5">
The above javascript occurs atleast thrice in my code. And i want to pick the
first occurence. My regexp extractor definition looks like this:
Regexp Extractor:
Reference name: modid
Regular exp: <INPUT\s+TYPE="hidden"\s+NAME="modId"\s+VALUE="(\d+)">
Template: $1$
Match No: 1
Default val: Failed to fetch modid
Kindly let me know if my regexp, template and match number is fine. The regexp
i have used is verified using the ORO demo applet.
Regards,
Akshata