Hi Sebb, I have question about Random function for you. The scenarios are as follows: 1. I run a HTTP Request by using external data file as my test script. I use _StringFromFile(xxx.dat) function in my test script. Now I want to randomly choose the data from xxx.dat file. Would you please let me know how to setup Random function? I tried to setup ${_Random(1,10,SEARCH)} in value of HTTP Request's Send Parameters With the Request:. Would you mind inform how to set Name of Function in Random function?
Thanks. Xgan Mathumathi Palani Bommu, EAS-Chennai wrote: > > I missed double underscore.... tried with single underscore... that's > the problem > > -----Original Message----- > From: sebb [mailto:[EMAIL PROTECTED] > Sent: Friday, February 01, 2008 4:22 PM > To: JMeter Users List > Subject: Re: Doubt in random function > > OK. > > In case it helps other users, what was the problem? > > > On 01/02/2008, Mathumathi Palani Bommu, EAS-Chennai > wrote: >> Thanks for your help sebb ... it works fine for me now ... >> >> -----Original Message----- >> From: sebb [mailto:[EMAIL PROTECTED] >> Sent: Thursday, January 31, 2008 10:40 PM >> To: JMeter Users List >> Subject: Re: Doubt in random function >> >> Works fine for me. >> >> I suggest you start by entering a fixed number. >> Replace that with a variable, finally try the function. >> >> Also try the function - cut and paste - in the Name field to check >> that it is working >> >> On 31/01/2008, Mathumathi Palani Bommu, EAS-Chennai > >> wrote: >> > Sorry sebb I tried this syntax only ${__Random(1,10)}.... where can > we >> > give in the XML request....the value is not generates... >> > >> > >> > -----Original Message----- >> > From: sebb [mailto:[EMAIL PROTECTED] >> > Sent: Thursday, January 31, 2008 5:38 PM >> > To: JMeter Users List >> > Subject: Re: Doubt in random function >> > >> > On 31/01/2008, Mathumathi Palani Bommu, EAS-Chennai >> >> > wrote: >> > > >> > > Hi >> > > >> > > >> > > >> > > I need to send random number as input in the web service request.. >> > > >> > > Can any one tell how to use random function to generate random >> numbers >> > > in each iteration .. >> > > >> > > >> > > >> > > I tried this format $_{Random(1,10)} in the data tag of XML > request >> > but >> > > the no value is generated instead the value is passed as {1,10} in >> the >> > > request.. >> > > >> > >> > That's because the syntax is wrong, it should be: >> > >> > ${__Random(1,10)} >> > >> > See: >> > >> > http://jakarta.apache.org/jmeter/usermanual/functions.html >> > >> > > >> > > >> > > Please suggest the usage of Random function in the Web service >> sampler >> > > >> > > >> > > >> > > Regards >> > > >> > > mathu >> > > >> > > >> > > >> > > DISCLAIMER: >> > > >> > >> > ------------------------------------------------------------------------ >> > ----------------------------------------------- >> > > >> > > The contents of this e-mail and any attachment(s) are confidential >> and >> > intended for the named recipient(s) only. >> > > It shall not attach any liability on the originator or HCL or its >> > affiliates. Any views or opinions presented in >> > > this email are solely those of the author and may not necessarily >> > reflect the opinions of HCL or its affiliates. >> > > Any form of reproduction, dissemination, copying, disclosure, >> > modification, distribution and / or publication of >> > > this message without the prior written consent of the author of > this >> > e-mail is strictly prohibited. If you have >> > > received this email in error please delete it and notify the > sender >> > immediately. Before opening any mail and >> > > attachments please check them for viruses and defect. >> > > >> > > >> > >> > ------------------------------------------------------------------------ >> > ----------------------------------------------- >> > >> > > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Doubt-in-random-function-tp15203305p15994649.html Sent from the JMeter - User mailing list archive at Nabble.com.