On 14/11/2007, Modha Khammammettu <[EMAIL PROTECTED]> 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.
Not possible if you really used
VehicleNumber: ${VehicleNumber}
as the Java Request label.
Are you sure you spelt the label correctly?
> All other variables print just fine.
>
> I have the java request defined as follows
This is not a Java Request ...
> Reference Name: VehicleNumber
> RE: invokeEvent\('([^']+)', true\)" class="button">Add</button>
> Template: 1$1
> Match No : 1
Set the default value so you can tell if the RE matched or not.
The RE does not set the variable at all if it did not match.
> 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.
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 14, 2007 5:53 AM
> To: JMeter Users List
> Subject: Re: Regular Expression -- Help
>
> On 14/11/2007, Modha Khammammettu <[EMAIL PROTECTED]> wrote:
> > Hi All
> >
> > I am trying for
> >
> > Reference Name: VehicleNumber
> > RE: invokeEvent('5_290_act', true)" class="button">Add</button>
>
> If what you have labelled RE is the source you want to match against,
> then try
>
> invokeEvent\('([^']+)', true\)" class="button">Add</button>
>
> > Template: $1$
> > Match No: 1
> >
> > I want the ReferenceName to have 5_290_act
> >
> > I tried a few combinations and when I try to print I do not get what I
>
> > am looking for. Can some one please help.
>
> Have you tried the ORO demo?
>
> http://jakarta.apache.org/oro/demo.html
>
> > Thanks
> > Modha/-
> >
>
> ---------------------------------------------------------------------
> 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]