Forum Discussion
Jan_Stepan
16 years agoOccasional Contributor
Using the debug I found the load command was only picking up the folder/directory.
Once I changed the load command syntax to include the file name in the path I was able to load the properties. E.g.
The file name was missing in Ole's example "Posted on: December 05, 2008, 05:21:39 pm". Did I find a bug or did Ole make a typo? I suspect my issue was not related to the web-start or stand-alone version. although I've not re-tried with the web-start version.
Afterwards, I was able to assign them by modifying your User guide example
Once I changed the load command syntax to include the file name in the path I was able to load the properties. E.g.
properties.load( new java.io.FileInputStream( "C:/folderPath/testpropFilename" + context.expand('${#TestSuite#testpropFilename}' ) ));
The file name was missing in Ole's example "Posted on: December 05, 2008, 05:21:39 pm". Did I find a bug or did Ole make a typo? I suspect my issue was not related to the web-start or stand-alone version. although I've not re-tried with the web-start version.
Afterwards, I was able to assign them by modifying your User guide example
// assign all properties
def names = properties.propertyNames();
while( names.hasMoreElements() )
{
def name = names.nextElement();
testRunner.testCase.testSuite.setPropertyValue( name, properties.getProperty( name ));
}
Related Content
- 9 months agoRichardPla
- 3 years agoaaronpliu
Recent Discussions
- 17 minutes agomcongreve
- 3 days agoemoya
- 4 days agoMyBalanceNow