**ERR** is returned whenever there is an error, but there should be further
information in the log file.

JMeter starts in the bin directory - is that where the file data.txt is?

S.
-----Original Message-----
From: Veronica Baiceanu [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 18:25
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: problem with _StringFromFile


Hi,

I am trying to use _StringFromFile to read values for parameters of an HTTP
Request. For instance, for the request parameter I can have:

Name: parameterName
Value: ${_StringFromFile(data.txt,)}

where "data.txt" resides in the JMeter bin folder. "data.txt" contains
values for parameterName, one value on each line. In the "View Results Tree"
listener I notice that the function returned an **ERR**. In the simplest
case, I am having just one parameter value in the "data.txt" file. I am
running the test with just one thread, looping just once. The test runs fine
when I specify the actual parameter value in the HTTP Request panel. I tried
to specify an absolute path for the data file as well, e.g. "C:\data.txt",
and I got the same problem.

I also tried to achieve the desired result using the __CSVRead function, and
apparently in this case the file was opened, but no value was retrieved.

I am using JMeter 1.9.1.

Thanks a lot for any help,
Veronica

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to