sorry Regular Expression is <ns6 and Template:$1$$2$ but its still not working
On Tue, Jun 25, 2013 at 8:16 AM, umesh prajapati <[email protected]>wrote: > One more thing, I am not sure where I went wrong but it is saving null > value when I try to save mutilple data from the response body > > Refrence name: orgid > Regular Expression:<ns5:OrganizationId>(.+?)</ns5:OrganizationId> > <ns6:UserId>(.+?)</ns6:UserId> > Template: $1$ > Match No.:1 > > In the property file > I added sample_variables=orgid_g1, orgid_g2 > > my response message will look like this > > <ns6:UserId>ffffffff51ba0d5fe4b079b8132d0eb4</ns6:UserId><ns6:FirstName>FNsauTeaActAsgnCP828</ns6:FirstName><ns6:LastName>LNsauTeaActAsgnCP828</ns6:LastName><ns6:Gender>Unspecified</ns6:Gender><ns6:CreatedDate>2013-06-13T14:20:15.270-04:00</ns6:CreatedDate> > > <ns6:OrganizationId>8a9484c137a89754013805b79af145f8</ns6:OrganizationId></ns6:AffiliationInfo><ns6:ConsentInfo> > > > On Tue, Jun 25, 2013 at 8:02 AM, umesh prajapati <[email protected]>wrote: > >> Ok I got it..working I had to change it in the property file. thanks for >> the tips >> >> >> On Tue, Jun 25, 2013 at 7:26 AM, umesh prajapati <[email protected]>wrote: >> >>> Thank you, >>> >>> which listener do I create and where do I add sample_variables = orgid, >>> Because i have view results in table, view results in tree and they dont >>> have an option when I can add sample _variables =orgi. >>> >>> I have my testplan as belowe >>> Thread Group >>> |---Soap/Xml-Rpc Request >>> |-----HTTP Header Manager >>> |-----Reg EX Extractor >>> |-----Graph Result >>> |-----View Results in Table >>> |-----View Results in Tree >>> >>> >>> On Tue, Jun 25, 2013 at 5:30 AM, Flavio Cysne <[email protected]>wrote: >>> >>>> 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 <[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] >>>> > >>>> > >>>> >>> >>> >> >
