This looks like a localisation problem.
As a work-round, please try the following:
${_StringFromFile(D:\data_file#'.'txt,,1,2)}
i.e. single-quote the .
Presumably your Locale is "fr" ?
I'll look at fixing this properly later, but hopefully the work-round
will work ...
S.
On 06/09/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> i'm using the version 2.1 of jmeter.
> i'm string to use the _StringFromFile function in a parameter value of
> my http request like this :
> ${_StringFromFile(D:\data_file#.txt,,1,2)}
>
> it doesn't seem to work. i've check the log and indeed, i notice
> something wrong.
> the files that i expect to be read (they exist on the disk) are
> data_file1.txt and data_file2.txt. but jmeter seems to try reading a
> file named "data_file1,txt". the comma makes obviously the file name
> incorrect.
>
> is this a bug or i am mistaking somewhere
>
> 2005/09/06 15:15:48 INFO - jmeter.engine.StandardJMeterEngine: Running
> the test!
> 2005/09/06 15:15:48 INFO - jmeter.functions.StringFromFile:
> setParameters(D:\data_file#.txt,,1,2)
> 2005/09/06 15:15:48 INFO - jmeter.gui.util.JMeterMenuBar:
> setRunning(true,local)
> 2005/09/06 15:15:49 INFO - jmeter.engine.StandardJMeterEngine: Starting
> 10 threads for group Test Thread. Ramp up = 0.
> 2005/09/06 15:15:49 INFO - jmeter.engine.StandardJMeterEngine: Continue
> on error
> 2005/09/06 15:15:49 INFO - jmeter.threads.JMeterThread: Thread Test
> Thread 1-1 started
> 2005/09/06 15:15:49 INFO - jmeter.functions.StringFromFile: Test Thread
> 1-1 Start = 1 Current = 1 End = 2
> 2005/09/06 15:15:49 INFO - jmeter.functions.StringFromFile: Test Thread
> 1-1 using format D:\data_file#.txt
> 2005/09/06 15:15:49 INFO - jmeter.functions.StringFromFile: Test Thread
> 1-1 *opening file D:\data_file1,txt*
> 2005/09/06 15:15:49 ERROR - jmeter.functions.StringFromFile: openFile()
> error: java.io.*FileNotFoundException: D:\data_file1,txt* (Le fichier
> spécifié est introuvable)
>
>
> Thanks in advance
> Raj
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]