Hey Sebb,

Thanks for your comments.

For example, I have a script that performs a quote of a system (e.g. car
quote) using a predefined customer reference (person). I need to perform
this quote for x number of predefined customer reference numbers, i.e.
first quote performed will use ABC/DEF/12345 as the reference number. The
second quote does the same thing just needs to use a different customer
ref, ABC/DEF/12346.

I will need to perform 10,000 quotes, so therefore need to be able to read
in from a file all my pre-defined customer reference numbers so I can
perform the same quote on each one.

I.e. I need a file with :

ABC/DEF/12345
ABC/DEF/12346
ABC/DEF/12347

Then in my working jmeter script that currently does 1 quote on a hardcoded
reference number as part of the HTTP Request Sampler, I want to loop round
the whole quote process and perform it once for each customer reference
contained in that file.

Thiis will then ideally have the load spread over say 100 jmeter threads so
that if I have 10,000 quotes required, that means I give 10,000 customer
refs, and say if I use 100 threads then each thread will perform 100 quotes
with unique customer refs.

Going on from what you have said, I am now starting to look at the CSVRead
function because that's what referred me to the CSV Data Set Config, but
I'm still lost on how to get jmeter to loop round an array of customer refs
obtained from a file.

Thanks,
Pete




-----sebb <[EMAIL PROTECTED]> wrote: -----


To: JMeter Users List <[email protected]>
From: sebb <[EMAIL PROTECTED]>
Date: 12/01/2005 06:02PM
Subject: Re: CSV files and ForEach Controller

On 01/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm having a little problem doing a basic proof of concept on reading in
a
> CSV file that comprises one column of policy numbers and does a HTTP
> Request Sampler based on this :
>
> 1234567
> 2365456
> 1653224
>
> I want a ForEach controller to take each of these and to exectute a
simple
> HTTP Request sampler, appending each item to a requested URL, say :
> www.google.com?${item}
>
> In the CSV Data Set Config, I have my file name which is picked up
> successfully, I define a variable name "policy" with no delimiter as it's
> only 1 column.
>
> In my ForEach controller, I define the input variable prefix to be
"policy"
> and the output variable name as "policyRef".

> I then have a HTTP Request Sampler that defines the path as
> "/index.com?${policyRef}".
>
> Looking thru the debug log, I see it reads the file, but has a problem
with
> the "policyRefX" where X is 1, looking for the first item, snippets of
log
> are :
>
> 2005/12/01 16:24:05 DEBUG - jmeter.testbeans.TestBeanHelper: Setting
> filename=csvtest.txt
> 2005/12/01 16:24:05 DEBUG - jmeter.testbeans.TestBeanHelper: Setting
> variableNames=policy
> 2005/12/01 16:24:05 DEBUG - jmeter.testbeans.TestBeanHelper: Setting
> delimiter=
> 2005/12/01 16:24:05 INFO  - jmeter.threads.JMeterThread: Thread Thread
> Group 1-1 started
> 2005/12/01 16:24:05 DEBUG - jmeter.control.GenericController: Calling
next
> on: org.apache.jmeter.control.LoopController
> 2005/12/01 16:24:05 DEBUG - jmeter.control.ForeachController: No entries
> found - null first entry: policyRef1
>
> I've gone thru doccos  and tried lots of tests, but I can't work out how
to
> get the interaction right between the CSV Data Set Config output variable
> and the ForEach controller, it's probably something to do with the "1"
> appended to the ForeachController and a misconfiguration in the way I'm
> trying to reference the variable name "policy" set up by the CSV Data
Set.
>
> Any suggestions would be greatly appreciated.
>

The ForEach Controller is intended for use with the RE Post-Processor,
and requires a SET of variables.

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#ForEach_Controller


In your case it will be looking for variables called:

policy_n or policyn (if the _ is omitted).

==

What are you actually trying to do?

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



***********************************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.
***********************************************************************************
For any information on the Quinn Group of Companies please visit :-

http://www.quinn-group.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to