jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Cysne <flaviocy...@gmail.com>
Subject Re: How to Save RegEx value into a file
Date Tue, 25 Jun 2013 12:30:39 GMT
If you want to save a file with only the values of these IDs you could use
OS Process sampler and run a shell script to append the string to the file.
In Linux it should be like this: echo ${orgid} >> organization_id_file.txt
just remember to clean up the file before executing the test again


2013/6/25 sebb <sebbaz@gmail.com>

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message