You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Gerrit Leder <ge...@gmail.com> on 2014/07/10 10:25:15 UTC

Debug Sampler - Regular Expression Extractor - Response Assertion

Hi all,

I have a JMeter Test Plan with a Debug Sampler that prints out
system.properties file and others. Below of the Debug Sampler are a Regular
Expression Extractor that defines a variable FOO. This variable is checked
in a Response Assertion if it contains the result of the regex.

My variable result is always null.

How come?

Thanks
Gerrit


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


Re: Debug Sampler - Regular Expression Extractor - Response Assertion

Posted by Jeff Ohrstrom <jo...@hotmail.com>.
On Thu, 2014-07-10 at 08:25 +0000, Gerrit Leder wrote:
> Hi all,
> 
> I have a JMeter Test Plan with a Debug Sampler that prints out
> system.properties file and others. Below of the Debug Sampler are a Regular
> Expression Extractor that defines a variable FOO. This variable is checked
> in a Response Assertion if it contains the result of the regex.
> 
> My variable result is always null.
> 
> How come?
> 
Are you giving them a default value? If the RegEx Extractor can't find
it it'll be either the default value or null. I tried to replicate this
for a second and found that this expression worked to get my
java.version. Perhaps your regular expression is not working right?

java.version=(.+?)\s

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



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