Hi,

Well, as Sebb wrote, the easiest way is to use
__Random(min,max)<http://jakarta.apache.org/jmeter/usermanual/functions.html#__Random>fonction.
Should you refer to the documentation, you request :

http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3

Would become in JMeter :

http://192.168.0.15/tile/bmng.php?T=${__Random(100,105)}&L=<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>
${__Random(0,5)}
<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>&X=<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>
${__Random(0,8)}
<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>&Y=<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>
${__Random(0,5)} <http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>

Of course, if you would like better control on it, you can instantiate
variables ${T},${L},${X},${Y} with the random fonction, do some controls,
and then call the request:

http://192.168.0.15/tile/bmng.php?T=${T}&L=<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>
${L} 
<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>&X=<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>
${X} 
<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>&Y=<http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>
${Y} <http://192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3>

I hope this will help you, but, please read the manual, it's pretty well
explained how to use everything. You'll need practise to get the hand on it,
as for any new software. It's worth it.

Regards,
Tibo

PS : I haven't tested it, I'm used to using Beanshell now (maybe too much ;)
).


On Wed, Feb 24, 2010 at 04:56, deeviya <[email protected]> wrote:

>
> Hi All,
>
> I tried using the function helper but could not find out how it work.
> Please Help me.....Its very urgent..........
>
> Thanks in Advance................
>
> Deeviya
>
> sebb-2-2 wrote:
> >
> > On 23/02/2010, Thibaut Raballand <[email protected]> wrote:
> >> Hi,
> >>
> >>  If you have a specific range like this defined, but no other rule, I
> >> would
> >>  rather suggest to add a BeanShell preprocessor to your request that
> >> would
> >>  randomly set values for T L X Y from their ranges.
> >
> > Or use the __Random() function:
> >
> >
> file:///D:/eclipseworkspaces/main/JMeter_trunk/printable_docs/usermanual/functions.html#__Random
> >
> > If you want to ensure that all possible combinations of values are
> > used, then you could use nested loops, each with a counter.
> >
> > Or, create a CSV file with the values you want, and use CSV DataSet.
> >
> >>  Regards,
> >>  Tibo
> >>
> >>
> >>  On Tue, Feb 23, 2010 at 12:17, deeviya <[email protected]> wrote:
> >>
> >>  >
> >>  > Hi All,
> >>  >
> >>  > I m new to Jmeter and need your help.
> >>  > I need to pass dynamic parameters for the T, L, X, Y in
> >>  > "http:/192.168.0.15/tile/bmng.php?T=105&L=0&X=8&Y=3". This is part
> of
> >>  > stress
> >>  > and load testing in our application.
> >>  >
> >>  > I structure of my test plan is:-
> >>  >
> >>  > Test plan
> >>  > User defined variable
> >>  > Thread group
> >>  > Http request
> >>  > Regular exp extractor
> >>  > Http request
> >>  > View result tree
> >>  >
> >>  > what extactly i want is that to specify range of  values for the T L
> X
> >> Y .
> >>  > for eg for T= [100-105]
> >>  > L=[0-5],  X=[0-8],   Y=[0-5].
> >>  > now i want jmeter to pick these many combination of the parameters
> and
> >> give
> >>  > me the output images that get generated by it.
> >>  > As a part of load testing if one user has these many combination then
> >> 100
> >>  > users will have just the 100 times of that. As my application is a
> >> SaaS
> >>  > then
> >>  > it will be used by many users simultaneously.
> >>  >
> >>  > When I looked on net for help....There were 3 option available.
> >>  > 1) CSV file.
> >>  > 2) jmeter regular exp extractor
> >>  > 3) ant script.
> >>  >
> >>  > I tries the jmeter regular extractor but could not find how to make
> >>  > function
> >>  > by ant script and run in jmeter.
> >>  > and how to make CSV file and upload it in the jmeter.
> >>  >
> >>  > Please help me......Thanks in Advance
> >>  >
> >>  >
> >>  > --
> >>  > View this message in context:
> >>  > http://old.nabble.com/new-to-jmeter-tp27701771p27701771.html
> >>  > Sent from the JMeter - User mailing list archive at Nabble.com.
> >>  >
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/new-to-jmeter-tp27701771p27714086.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to