You may be able to use the End count parameter instead of the While Controller:

http://jakarta.apache.org/jmeter/usermanual/functions.html#__StringFromFile

In your case, try using:

${_StringFromFile(${requeteUtilisateur},ligneCourante,,1)}

and set the test to run forever, or perhaps with a time limit.

Or use a Loop Controller or possibly a Runtime Controller.
These can be set to expire sometime after the file has been fully
read. I.e, if the file contains at most 1000 records, set the Loop
Count >=1000, etc.

S.

On Thu, 20 Jan 2005 16:49:42 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I want to read a file inside a while controller, each line of the file
> contains an http request. A same user has to do all the resquests of the
> file.
> So I did a test plan which looks like this:
> 
> Simple Controller
>   |
>   \
>     While Controller (LAST)
>       User Defined Variable:
> ${_StringFromFile(${requeteUtilisateur},ligneCourante,,)}
>       HttRequest ( logUtilisateur )
>             |
>             \ assertion
> 
>  (${requeteUtilisateur} contains the file to be read)
> 
> My problem is that only the first line of the file is read.
> The second time the script enters in the loop, it still read the first
> line, when I want it to read the next line.
> 
> Thanks for you attnetion
> Jerome
> 
> ---------------------------------------------------------------------
> 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