On 18/04/2008, Chi Tong <[EMAIL PROTECTED]> wrote:
> Hi,
>  I tried to read all the content of a text file into one variable and this 
> variable will be used as the value of a parameter for a http post request.
>
>  I used __CSVRead() in Jmeter to read the content of the text file,
>
>  var1: ${__CSVRead(test.txt,*myAlias)}
>  var2: ${__CSVRead(*myAlias,0)}${__CSVRead(*myAlias,next)}
>
>  but variable var2 contains only one line of content from the text file per 
> thread. My goal is to fill a variable with strings which spans multiple lines 
> from all the content of the text file per thread.
>
>  Is there a function or component or method to read all the content of a file 
> into a variable in Jmeter?
>

No.

But if you are able to write Java code you could do this using a
Beanshell function.

Or it may be possible with a Javascript function - I don't know if
Javascript can read files.

>  Thanks for your help.
>
> Chi
>
>
>
>
>       
> ____________________________________________________________________________________
>  Be a better friend, newshound, and
>  know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>  ---------------------------------------------------------------------
>  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