You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Fr...@idg.de on 2004/02/06 18:16:10 UTC
ISt it possible to Log/Print/Display the outcome of a RegEx?
Hi,
I need to know the outcome of RegEx. How can I print it to a Log or display
it?
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: ISt it possible to Log/Print/Display the outcome of a RegEx?
Posted by se...@apache.org.
The JavaTest sampler in 1.9.1 is similar.
The latest code in CVS includes two logging functions, __log() and __logn().
The first one returns the input string, the second returns the empty string, so:
__log() can be used to wrap an existing parameter to a test element
__logn() can be used to log a message without affecting the test element
S.
----- Original Message -----
From: "Craig Palmer" <cr...@peace.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Sunday, February 08, 2004 7:37 PM
Subject: Re: ISt it possible to Log/Print/Display the outcome of a RegEx?
I'm not sure if there is a native way of doing this but I did this by
writing a customer java sampler. I defined a Java Sampler that could
take three parameters and displayed their values to the Response Data.
At each point that I wanted to know the value of a variable, then I
put this sampler in with a View Results Tree listener.
Craig.
Frank_Lindner@idg.de wrote:
> Hi,
>
> I need to know the outcome of RegEx. How can I print it to a Log or display
> it?
>
> Thanks in advance
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
--
Craig Palmer Mobile NZ: +64 21 755 254
Peace Software URL: http://www.peace.com
Email: craig.palmer@peace.com
---------------------------------------------------------------------
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
Re: ISt it possible to Log/Print/Display the outcome of a RegEx?
Posted by Craig Palmer <cr...@peace.com>.
I'm not sure if there is a native way of doing this but I did this by
writing a customer java sampler. I defined a Java Sampler that could
take three parameters and displayed their values to the Response Data.
At each point that I wanted to know the value of a variable, then I
put this sampler in with a View Results Tree listener.
Craig.
Frank_Lindner@idg.de wrote:
> Hi,
>
> I need to know the outcome of RegEx. How can I print it to a Log or display
> it?
>
> Thanks in advance
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
--
Craig Palmer Mobile NZ: +64 21 755 254
Peace Software URL: http://www.peace.com
Email: craig.palmer@peace.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org