Maybe the file name shouldn't be quoted. 
http://jakarta.apache.org/jmeter/usermanual/functions.html#__StringFromFile



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 10:07 AM
To: JMeter Users List
Subject: RE: _StringFromFile - - java.io.FileNotFoundException

I did try that.  The results were the same.  (The file used to be named
outSql.txt)   I wanted to simplify the attempt even to the point of having
no file extension in the name.

Keith Gunderson
Performance Test Analyst



|---------+---------------------------->
|         |           Yiping Yang      |
|         |           <[EMAIL PROTECTED]|
|         |           s.com>           |
|         |                            |
|         |           03/14/2006 09:02 |
|         |           AM               |
|         |           Please respond to|
|         |           "JMeter Users    |
|         |           List"            |
|         |                            |
|---------+---------------------------->
 
>---------------------------------------------------------------------------
-----------------------------------|
  |
|
  |       To:       JMeter Users List <[email protected]>
|
  |       cc:
|
  |       Subject:  RE: _StringFromFile - -  java.io.FileNotFoundException
|
 
>---------------------------------------------------------------------------
-----------------------------------|




Did you try to put the file extension in the file name? like
${_StringFromFile( "outSqltxt.txt"  ,   sql1)}

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 9:58 AM
To: JMeter Users List
Subject: _StringFromFile - - java.io.FileNotFoundException



I'm trying to get the most simple example of _StringFromFile to work.  So I
have a text file named outSqltxt in the JMeter Launch directory.

I have the following as the Query value in a JDBC Request:

${_StringFromFile( "outSqltxt"  ,   sql1)}

This produces the following:

2006/03/14 08:42:42 INFO  - jmeter.functions.StringFromFile: ThreadGroup
1-1 opening file  "outSqltxt"
2006/03/14 08:42:42 ERROR - jmeter.functions.StringFromFile: openFile()
error: java.io.FileNotFoundException:  "outSqltxt"   (The filename,
directory name, or volume label syntax is incorrect)
2006/03/14 08:42:42 DEBUG - jmeter.functions.StringFromFile: ThreadGroup
1-1 name:   sql1 value:**ERR**
2006/03/14 08:42:42 DEBUG - jmeter.testbeans.TestBeanHelper: Setting
query=**ERR**

This is using the binary JMeter-2.1.1 on Windows.  (English locale, I
assume, although I don't know how to check.)


Keith Gunderson
Performance Test Analyst


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

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

Reply via email to