On 14/11/2007, Modha Khammammettu <[EMAIL PROTECTED]> wrote:
> Ok I know (?) the problem
>
> There are 5 matches to the regular expression ( when I put the whole
> page as input to ORO)
>
> ===================================================================
> Compiling regular expression.
>
> Searching
>
> Match 1: invokeEvent('5_290_act', true)" class="button">Add</button>
>    Subgroups:
>    1: 5_290_act
> Match 2: invokeEvent('5_299_act', true)" class="button">Add</button>
>    Subgroups:
>    1: 5_299_act
> Match 3: invokeEvent('5_306_act', true)" class="button">Add</button>
>    Subgroups:
>    1: 5_306_act
> Match 4: invokeEvent('5_314_act', true)" class="button">Add</button>
>    Subgroups:
>    1: 5_314_act
> Match 5: invokeEvent('5_320_act', true)" class="button">Add</button>
>    Subgroups:
>    1: 5_320_act
>
> The input contained 5 matches.
> ======================================================================
>
> Now the question is how to uniquely identify first match.

Match No is described here:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor

> I tried http://wiki.apache.org/jakarta-jmeter/RegularExpressions and
> some other sources to figure out how to uniquely name the match.
> Can you please give me pointers..
>
> So now instead of ${VehicleNumber} I have to give something else...
>
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 14, 2007 10:36 AM
> To: JMeter Users List
> Subject: Re: Regular Expression -- Help
>
> This can be seen in the Tree View Listener, or you can use Save
> Responses to a File Post-Processor.
>
> These are described in the manual ...
>
> On 14/11/2007, Modha Khammammettu <[EMAIL PROTECTED]> wrote:
> > Is there a way to print the text the regular expression is trying to
> > compare ( I mean to the whole page content which RE is going after)
> >
> > -----Original Message-----
> > From: sebb [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 14, 2007 9:18 AM
> > To: JMeter Users List
> > Subject: Re: Regular Expression -- Help
> >
> > Have you tried the page content in the ORO demo?
> >
> > Note that the spacing is critical.
> >
> > You may need to replace white-space in the RE with \s+ - or even \s*
> > if the space might be absent.
> >
> > On 14/11/2007, Modha Khammammettu <[EMAIL PROTECTED]> wrote:
> > > Here is the page content
> > >
> > > <table cellpadding="0" cellspacing="0" border="0"> <tr> <td
> width="9"
> > > height="1"><img src="images/trans_pixel.gif" width="4"
> > > height="4"/></td>
> > > <td><button smokeId="Add" onclick="Events.invokeEvent('5_290_act',
> > > true)" class="button">Add</button></td><td><button smokeId="Remove"
> > > onclick="Events.invokeEvent('5_291_act', true)" buttonFlags="all
> > > Removeable" class="button">Remove</button></td></tr>
> > > </table>
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Modha Khammammettu [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, November 14, 2007 9:08 AM
> > > To: JMeter Users List
> > > Subject: RE: Regular Expression -- Help
> > >
> > > Thanks
> > > I put it as $1$ only.
> > >
> > > When I put a default value as descr
> > > I get VehicleNumber: descr
> > >
> > > -----Original Message-----
> > > From: Ronan Klyne [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, November 14, 2007 9:00 AM
> > > To: JMeter Users List
> > > Subject: Re: Regular Expression -- Help
> > >
> > > Modha Khammammettu wrote:
> > > > Thanks
> > > > This works fine when I tried it in ORO demo.
> > > > But when I tried the same thing in Jmeter script and print it as
> > > > Java Request I get it as
> > > >
> > > > VehicleNumber: {${VehicleNumber} as result.
> > > > All other variables print just fine.
> > > >
> > > > I have the java request defined as follows
> > > >
> > > > Reference Name: VehicleNumber
> > > > RE: invokeEvent\('([^']+)', true\)" class="button">Add</button>
> > > > Template: 1$1
> > >
> > > ^ You had this right in your previous post - it should be: $1$
> > >
> > > > Match No : 1
> > > >
> > > > When I am printing using "Java Request" I set the label as
> > > > VehicleNumber: ${VehicleNumber}
> > > >
> > > >
> > > > When I run my test the output is
> > > > VehicleNumber: ${VehicleNumber}
> > > >
> > > > I expected
> > > > VehicleNumber: 5_290_act
> > > >
> > > > I saw the page content in view result tree, it has the string
> > > > invokeEvent('5_290_act', true)" class="button">Add</button>
> > > >
> > > > It is just happening with this particular variable.
> > > >
> > >
> > >
> > >
> > > --
> > > Ronan Klyne
> > > Business Collaborator Developer
> > > Tel: +44 (0)870 163 2555
> > > [EMAIL PROTECTED]
> > > www.groupbc.com
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to