Hi,

I am performance testing a java client. The client gets a parameter from a csv 
file by passing it as a request parameter in my java request.
My test plan looks like this:

- Test TestPlan
  |-- Thread Group
      |-- Java Request

The thread group has 5 thread with 4 iterations. 
The Java Request has a parameter with name = 'doc_id' and 
value='${__StringFromFile(d:\tmp\products.txt)}'
The file products.txt contains 20 lines, each line contains a different number.

When running the test, the java client is called 20 times (as expected), but 
the doc_id which is passed is only from the first 5 lines. It looks like each 
iteration starts reading the file from the beginning. What I want to have 
instead is that each of the 20 invocations uses a different (new) line from the 
file.

I have tried it with the functions StringFromFile, CSVRead and with the CSV 
Data Set Config test element as well as using a User Parameter pre processor. 
All show the same behavior. Reading the documentation and implementation 
examples from other people, I am not sure if this is the intended behavior.

I am using JMeter 2.3.1.

Is there a way to use a new line for each iteration?

Thanks for your help,

Torsten Steinert

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

Reply via email to