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 again2013/6/25 sebb <[email protected]> > On 25 June 2013 05:18, umesh prajapati <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
