akshata s.m. wrote:
> 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?
It should be a child of your sampler. This will ensure that it only
applies to this sampler.
>
> 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.
They all look good to me...
Ronan
--
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
[EMAIL PROTECTED]
www.groupbc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]