On 14/11/2007, Modha Khammammettu <[EMAIL PROTECTED]> wrote:
> Thanks
> I put it as $1$ only.
>
> When I put a default value as descr
> I get VehicleNumber: descr

That means the RE ran but did not find a match.

It also confirms that the variable reference was correctly spelt.

> -----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]

Reply via email to