RE: problem with _StringFromFile

2003-10-14 Thread BAZLEY, Sebastian
**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]



Re: problem with _StringFromFile

2003-10-14 Thread Veronica Baiceanu
I apologize, looks like it wasn't a JMeter problem. I was confused by my
newly installed Windows XP folder settings... I had file extensions set not
to be displayed, but set to be appended automatically for known types of
files. So when I thought I created data.txt, I had actually created the
file data.txt.txt. And I was only seeing data.txt.

Since I wasn't seeing file extensions, I hadn't seen that JMeter had a .log
file. Your advice helped -- I looked for the log, where I saw that
data.txt was not found, and this made me see the source of the problem.

Thank you,
Veronica


- Original Message - 
From: BAZLEY, Sebastian [EMAIL PROTECTED]
To: 'JMeter Users List' [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 10:45 AM
Subject: RE: problem with _StringFromFile


 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:[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]

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