On 07/03/2008, Torsten Steinert <[EMAIL PROTECTED]> wrote:
> Hi sebb,
>
>  thanks for your quick answer. You are absolutely correct, it was my Java 
> sampler. My mistake was to extract the parameter in setupTest instead of 
> runTest :(

Yes, that would tend to result in a variable that doesn't ;-)

>  Now it works for me too.

Glad it's sorted.

>  Thanks,
>
>  Torsten Steinert
>
>
>  sebb <[EMAIL PROTECTED]> schrieb am 07.03.2008 18:43:15:
>  >
>  > On 07/03/2008, Torsten Steinert <[EMAIL PROTECTED]> wrote:
>  > > 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?
>  >
>  > It should already do that.
>  >
>  > Works fine for me. I tried
>  >
>  > User Param:
>  > Name: SFFUP
>  > Value: ${__StringFromFile(csvdata.csv)}
>  >
>  > Java Request:
>  > Label:  SFF=${__StringFromFile(csvdata.csv)} SFFUP=${SFFUP}
>  >
>  > Perhaps there is a problem in the way your Java Sampler retrieves the id?
>  >
>  > >  Thanks for your help,
>  > >
>  > >  Torsten Steinert
>  > >
>  > >  ---------------------------------------------------------------------
>  > >  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]

Reply via email to