The following test plan works for me:

Thread Group (forever)
 - User Parameters (Pre-Processor), with:
     * update once per iteration
     * Name=V, User_1=${_StringFromFile(sff.txt,,,1)}
 - Request that uses ${V}
 - Table Listener.

sff.txt contains a few lines of text - the sampler will be run once
for each line in the file.

In fact, you don't need the While Controller for this - StringFromFile
will stop the thread if it runs out of files to process. In this case
the count is 1, so it will stop processing at the end of the file.

Try it and see.

S.
On Fri, 21 Jan 2005 14:38:56 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi, and Thanks for your answer:
> 
> I tried with a loop, and it still doesn't work, so I logged the user param
> section, to understand what happens exactly.
> 
> User Defined variable
>       webcca = ${_StringFromFile(${fichierWebCca},requeteUtilisateur,,)}
> 
> loop (2)
>     User Defined Variable:
>         ${_StringFromFile(${requeteUtilisateur},ligneCourante,,)}
>         ${__logn(LECTURE  ligne courante de ${requeteUtilisateur}:
> ${ligneCourante}:   ,,)}
>         http request (  ${ligneCourante}  )
> Assert Results
> 
> The file pointed by ${requeteUtilisateur} contains
> url1
> url2
> 
> In the assertion result pane, I can see that the httprequest is sent twice,
> but with url1 parameter each time.
> In the log file, I can see the message correspondig to "__logn(LECTURE
> ligne courante de ${requeteUtilisateur}: ${ligneCourante}:" only once.
> 
> It's like , the http request is executed 2 times while the User Defined
> Variable once.
> 
> I tried with several value for StringToFile last parameter (no value, 1 and
> 2), but it behave the same, reading the first line of the file.
> 
> Regards,
>       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