Hi,

Your response is Correct ?
If it is ok the you can test your regular expression on your response data
with this web site http://www.spaweditor.com/scripts/regex/index.php

It is a free site. It enables to test regular expression on every data then
find what you want.

good luck
annie35




I have problem, or really don't know how to use jmeter. I have such plan:

- Mail reader sampler
   |-BeanShell Assertion
- Http Request

In BeanShell Assertion I'm reading mail and doing regexp on it. The script:

import org.apache.jmeter.samplers.SampleResult;

SampleResult[] results = Response.getSubResults(); 

vars.put("EMAIL_RESPONSE",results[0].getResponseDataAsString());
//print(vars.get("EMAIL_RESPONSE")+"===========");

${__regexFunction( .*uid=(.*)&token=(.*) 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-regex-in-beanShell-and-then-using-results-tp24566983p24590177.html
Sent from the JMeter - User mailing list archive at Nabble.com.

Reply via email to