On 30/01/06, Lenin Basheer <[EMAIL PROTECTED]> wrote: > > Thanks Sebb for the prompt reply. > I got Jmeter to calculate the modulus using the _JavaScript() > function. > > I could make out that BeanShellsampler has the provision for sampling > a script that has been passed to it, is any provision available for > JavaScripts also?
No. The BeanShell sampler is intended to generate samples, not provide functions. > That might come in handy some time later when the scripts are longer > and might be more complex. Only if you want to sample how long the script takes to run. If the calculations are not essential to the test, then I suggest that the computations are done before running the test - if at all possible. For example we use randomised account ids in some of our tests - the random numbers are generated in separate files, and read using StringFromFile (though we would use CSV Data Set now). > That was just an enquiry. Thanks for the help. > > Regards, > Lenin > > > > sebb > <[EMAIL PROTECTED] To: JMeter Users List > <[email protected]> > m> cc: > Subject: Re: Arithemtic > Operations while Load testing > 01/30/2006 06:03 > PM > Please respond > to "JMeter Users > List" > > > > > > > How are you obtaining the value? > Perhaps you could pre-calculate the modulus and provide it at the same > time as the actual value. > > Otherwise, have a look at the Javascript and BeanShell functions: > > http://jakarta.apache.org/jmeter/usermanual/functions.html > > > On 30/01/06, Lenin Basheer <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > Is there some way to perform arithmetic operations (other than > _intSum()) in > > JMeter. > > > > I want to have the "modulus" operation on a value given in the > > UserParameter. Is it possible to have a script file (say JavaScript > ) and > > get JMeter to run it. > > > > Will the option of writing a JavaListener entirely for this purpose > be an > > additional load on the system. Is it so? > > > > Please help. > > > > Thanks in advance. > > > > Lenin > > > > > > > > > > > --------------------------------------------------------------------- > > 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]

