Setting vars: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#BeanShell_Sampler
see section on variables Using vars: http://jakarta.apache.org/jmeter/usermanual/functions.html On 28/09/2007, Bryan Li <[EMAIL PROTECTED]> wrote: > Might sound like a stupid question? But how do I set a variable and then use > it in the sampler? > > > > On 9/27/07, sebb < [EMAIL PROTECTED]> wrote: > > > > Unless you need access to the current sample to generate the string, > > it would probably be easier to use a BeanShell function instead. > > > > Otherwise, just set a variable which you then use in the sampler. > > > > > > On 28/09/2007, Bryan Li <[EMAIL PROTECTED] > wrote: > > > Hi all, > > > > > > Don't wanna be spamming but I couldn't find a solution to my problem. > What I > > > want to do is simple. I need to randomly generate a string to be the > Path of > > > the HTTP Request. This is done in the BeanShell Preprocessor. The > question > > > is, how do I pass this randomized string to the HTTP Request from the > > > BeanShell script? > > > > > > Any input is appreciated. > > > > > > Thanks, > > > Bryan > > > > > > > > --------------------------------------------------------------------- > > 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]

