Forum Discussion
Intermountain_H_3
13 years agoContributor
For that matter, as I get further into things, it appears that no test case or project properties loaded from the command line get loaded prior to load test execution. This greatly limits the ability to perform my load testing from the command line.
My test case contains the property fileName. One of the first steps in that test case contains: def file = testRunner.testCase.getPropertyValue('fileName') which is then passed to a static java class to read. If the project is saved with that property empty, whatever value passed to my java class (a valid file path on my machine) is not found with this code
fn = new File(fileName);
if(fn.exists()) {
If I populate that test case property in the saved project, the load test runs corectly from the command line, accessing the data from that file.
My test case contains the property fileName. One of the first steps in that test case contains: def file = testRunner.testCase.getPropertyValue('fileName') which is then passed to a static java class to read. If the project is saved with that property empty, whatever value passed to my java class (a valid file path on my machine) is not found with this code
fn = new File(fileName);
if(fn.exists()) {
If I populate that test case property in the saved project, the load test runs corectly from the command line, accessing the data from that file.