jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Modha Khammammettu" <MKhammamme...@calcas.com>
Subject RE: Regular Expression -- Help
Date Wed, 14 Nov 2007 15:53:18 GMT
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
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.

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, November 14, 2007 5:53 AM
To: JMeter Users List
Subject: Re: Regular Expression -- Help

On 14/11/2007, Modha Khammammettu <MKhammammettu@calcas.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message