jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Barasch" <Mike.Bara...@STIDELIVERS.COM>
Subject RE: variable for Regular Expression
Date Fri, 19 Feb 2010 14:54:16 GMT
Thanks for getting back with me!!  I tried what you said but I'm still not getting the value,
immediately below is what I'm trying to match name="$$screenId" value="1266591002450"/>
And the next expert is what it trys to Post.  I'm so close...  Any other ideas?

  <form action="ScreenInput.jsp" method="post"  onsubmit='return formSubmit()' acceptcharset='8859_1'
      <input type="hidden" id="$$cursor" name="$$cursor" value="000000"/>
      <input type="hidden" id="$$cursField" name="$$cursField" value=""/>
      <input type="hidden" name="$$screenId" value="1266591002450"/>
      <input type="hidden" name="$$modified" value=""/>
      <table class='topTable' >

POST data:

Mike Barasch
Network Engineer
Be Safe!
-----Original Message-----
From: Andrey Pohilko [] 
Sent: Friday, February 19, 2010 9:44 AM
To: 'JMeter Users List'
Subject: RE: variable for Regular Expression

Make note that $ symbol means string end in regular expressions.

Try this regexp:
	name="[^"]*screenId" value="([^"]*)"

С уважением,
Андрей Похилько

-----Original Message-----
From: Mike Barasch [mailto:Mike.Barasch@STIDELIVERS.COM] 
Sent: Friday, February 19, 2010 5:24 PM
Subject: variable for Regular Expression

>From what I understand when you setup a Regular Expression Extractor you
need to setup a variable.  So I defined a User Paramater and added a
variable called screen.  Then in my code I reference this variable by
using ${screen}.  When I run my script it doesn't appear that my screen
variable is being set to anything.  Is there a way to tell if screen is
being set when I do my RE extraction?  Did I setup my variable correctly
or do I need to make screen= to something?


My RegEx is:

Ref Name: screen

Reg Exp: name="$$screenId" value="(.*?)"

Template: $1$

Match: 1

Default Value: failed





To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message