You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ilay <ra...@gmail.com> on 2009/01/03 18:25:33 UTC

Print or output a value stored in a variable captured through RegEx Extractor

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. 
-->  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). 
      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


Re: Print or output a value stored in a variable captured through RegEx Extractor

Posted by sebb <se...@gmail.com>.
On 03/01/2009, Ilay <ra...@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