jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Print or output a value stored in a variable captured through RegEx Extractor
Date Mon, 05 Jan 2009 18:10:20 GMT
On 03/01/2009, Ilay <raghav.gumma@gmail.com> wrote:
>
>  Hi,
>
>  Is it possible to print or save the value of the variable extracted through
>  RegEx extractor ?
>
>  For example:
>
>  I want to extract a particular string from some response text sent by
>  server:
>
>  (20 of 40 rows matched the filter)
>  I want to capture the string "20 0f 40 rows" (this is a dynamic value..keeps
>  changing to 21 of 41 and so on) from the server response data.
>
>  -->  Please guide me on how to use RegEx Extractor for the above case. I
>        tried ((.+?) . But this is not working.

( and ) are special. You need to escape them:

\((.+?)\)

or better

\(([^)]+)\)

>  -->  Once i capture the above string in a variable, how can i pass this
>  value to be printed in
>       the aggregate report or summary report (.jtl or .csv file).

http://jakarta.apache.org/jmeter/usermanual/listeners.html#sample_variables

>       Else is there a way to save or output the value stored in the variable
>  in some readable
>      format.
>

______________________________________________________________________________________
>  Please help me on these two issues.
>
>  Thanks in advance.
>
>  Thanks,
>  Raghav
>
>
>  --
>  View this message in context: http://www.nabble.com/Print-or-output-a-value-stored-in-a-variable-captured-through-RegEx-Extractor-tp21267087p21267087.html
>  Sent from the JMeter - User mailing list archive at Nabble.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


Mime
View raw message