I tried changing the Sharing Mode to Current thread and got the same results.
Here's an outline of the test plan:
Test Plan
- Thread Group
-- CSV Data Set Config
--- Variable Names: CustomerCode,LogonName,Password,LockboxSearchFile
-- Simple Controller: Lockbox Search
--- User Parameters
---- DataFile: ${resourcePath}${LockboxSearchFile} (resolves to the
full UNC path to the CSV file
--- HTTP Request
---- CSV Data Set Config
----- Filename: ${DataFile}
----- Variable Names: siteLockboxID,DateFrom,DateTo
----- Sharing Mode: Current thread
---- Debug Sampler
I also tried moving the CSV Data Set to just before the HTTP Request.
In the Debug Sampler, I get the following:
JMeterVariables:
CustomerCode=Performance 1
DataFile=H:\Projects\Online Long Term Archive\Testing\JMeter
Scripts\IPOnline-JMeter-Scripts\resources\Performance 1\Lockbox Search.csv
JMeterThread.last_sample_ok=true
jmeterthread.pack=org.apache.jmeter.threads.samplepack...@94607b
LockboxSearchFile=Performance 1\Lockbox Search.csv
LogonName=Perf01
Password=<password for Perf01>
I do not get the siteLockboxID, DateFrom, or DateTo variables defined.
When I turn on logging, I have the following in the log file:
ERROR - jmeter.config.CSVDataSet: java.io.FileNotFoundException:
H:\Projects\Online Long Term Archive\Testing\JMeter
Scripts\IPOnline-JMeter-Scripts\${DataFile} (The system cannot find the file
specified)
2009/09/09 14:03:30 ERROR - jmeter.threads.JMeterThread: Error while processing
sampler 'View Lockbox Search' : java.lang.IllegalArgumentException: protocol =
http host = null
So, it appears that while the resourcePath is getting resolved correctly in the
module, the DataFile is not getting resolved during processing.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]