jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: How to Save RegEx value into a file
Date Tue, 25 Jun 2013 09:40:53 GMT
On 25 June 2013 05:18, umesh prajapati <praumesh86@gmail.com> wrote:
> Hi,
>
> how can i save RegEx extracted value from a response body into a file. For
> example:
> user1 request will have response body
> <ns6:OrganizationId>8a9484c137a89754013805b79af145f8</ns6:OrganizationId>
>
> user2 request will have response body
> <ns6:OrganizationId>9a9484d136a89754013805b79af145f8</ns6:OrganizationId>
>
> So, I added RegEx extractor to the sampler request
> Refrence name: orgid
> Regular Expression:<ns5:OrganizationId>(.+?)</ns5:OrganizationId>
> Template: $1$
> Match No.:1
>
> So, how do I save all this organization Id using RegEx into a single file

Listeners can save sample variables.

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

So just create a Listener in the correct scope and define

sample_variables=orgid

You can disable some or all of the other fields using the Config button.

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


Mime
View raw message