jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pohilko" <...@fininfor.ru>
Subject RE: variable for Regular Expression
Date Fri, 19 Feb 2010 15:01:51 GMT
Try to debug your regexp at http://gskinner.com/RegExr/
If regexp is ok (I tried my suggested regexp, it was ok for me), then
something wrong with your Regular Expression extractor.

What it assigns to variable in fact? "failed" or empty? Are you using Debug
Sampler to debug?

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

-----Original Message-----
From: Mike Barasch [mailto:Mike.Barasch@STIDELIVERS.COM] 
Sent: Friday, February 19, 2010 5:54 PM
To: JMeter Users List
Subject: RE: variable for Regular Expression

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' class='top'>
      <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:
%24%24cursor=020015&%24%24cursField=command&%24%24screenId=&%24%24modified=%
2Ccommand&command=v615&PFKEY=F0%3DENTR&*PFKEY=0


Mike Barasch
Network Engineer
STI
260.429.3015
Be Safe!
-----Original Message-----
From: Andrey Pohilko [mailto:apc@fininfor.ru] 
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
To: jmeter-user@jakarta.apache.org
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

 

Thanks!

Mike

 



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



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