Sorry, just noticed you had tried:
"C:\data.txt"
That might have to be "C:\\data.txt" or "C:/data.txt"
S.
-----Original Message-----
From: BAZLEY, Sebastian
Sent: 14 October 2003 18:41
To: 'JMeter Users List'
Subject: RE: problem with _StringFromFile
**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:veronica.baiceanu@dtiserv2.com]
Sent: 14 October 2003 18:25
To: jmeter-user@jakarta.apache.org
Cc: veronica.baiceanu@dtiserv2.com
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
|