Here's some notes on how to use __CSVRead(). The intention was to provide
LoadRunner-like parameterisation, so it should do the Job.
Hope it make's sense!! If not I'll post an example
Cheers
Phil Evans
The CSVRead function returns data from a CSV formatted file. This is used
where parameter data must be varied for each iteration of the test plan.
A value is read by specifying the filename and position of the field within
a row as parameters to the function, eg:
${__CSVRead(c:/scripts/user.dat, 0) } (for a
Windows filename)
Note that variable positions in a row start at zero, and the value may be
read many times.
The next row in the file is accessed by issuing next() as the second
parameter:
${__CSVRead(c:/scripts/user.dat, next()) }
You need to create a dummy parameter in a sampler request in order to
execute next(), but this shouldn't be a problem for most applications - it
will just be ignored. It is also necessary to execute next() before reading
the first values from file. This means putting next() in a step that is
before the step where the first value is used.
Reading past the end of the file returns to the first record.
[EMAIL PROTECTED]
rg
29/05/2003 18:20 To: JMeter Users List <[EMAIL
PROTECTED]>
Please respond to cc: (bcc: Phil Evans/External)
"JMeter Users Subject: RE: New To JMeter - Need
help.
List"
Then you can use the User Parameters element to set up values for each
thread, or, if you have a large list, you can use the StringFromFile
function or
the CSV function. Both the functions are new and pretty much
undocumented currently in JMeter 1.9RC1. In 1.8.1 there is also the HTTP
User Parameter Modifier, which is documented.
-Mike
On 29 May 2003 at 12:06, Puri, Manish wrote:
> I don't need a counter. I have a set of static values for ItemID which I
> want to insert in the HTTP request.
>
> -Manish
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 29, 2003 12:06 PM
> To: JMeter Users List
> Subject: Re: New To JMeter - Need help.
>
>
> There are lots of ways to do it, and it depends on what you want. Is
this
> ItemId a value you grab from a previous response? Do you just want to
set
> up
> a list of static values for JMeter to use successively? Do you just need
a
> counter?
>
> -Mike
>
> On 29 May 2003 at 11:59, Puri, Manish wrote:
>
> > Hi,
> >
> > I need to simulate a scenario whereby I want user to make an Http
Request
> > with different values for a parameter - e.g. ItemId in the URL. I know
we
> > can do this with Loadrunner by parametrising the variable. How do we do
> the
> > same with JMeter(if at all it is possible).
> >
> > -Manish
> >
>
>
>
> --
> Michael Stover
> [EMAIL PROTECTED]
> Yahoo IM: mstover_ya
> ICQ: 152975688
> AIM: mstover777
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
---------------------------------------------------------------------
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]