jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BAZLEY, Sebastian" <>
Subject RE: problem with _StringFromFile
Date Tue, 14 Oct 2003 17:45:55 GMT
Sorry, just noticed you had tried:


That might have to be "C:\\data.txt" or "C:/data.txt"

-----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?

-----Original Message-----
From: Veronica Baiceanu []
Sent: 14 October 2003 18:25
Subject: problem with _StringFromFile


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,

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message