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:[email protected]] 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:[email protected]] 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:[email protected]] Sent: Friday, February 19, 2010 5:24 PM To: [email protected] 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: [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]

