Brian_Mowbray
15 years agoContributor
Passing properties to the test project via the command line runner
If I kick off a test using the command line runner (i.e. loadtestrunner.bat), the documentation [http://www.soapui.org/userguide/commandline/loadtestrunner.html] indicates that I can set a project property using the -P parameter.
I did the following:
"C:\Program Files (x86)\eviware\soapUI-Pro-3.0.1\bin\loadtestrunner.bat" LoadTestWithLightWeightAdapterComponents.xml -n1 -m10 -r -fResults -Ppropertyname=value
I would think I should be able to read the property using this syntax:
log.info("read commandline value = " + project.getPropertyValue("propertyname") );
But my log indicates that the value is null:
2010-04-08 11:52:59,197 INFO [log] read commandline value = null
Is my thinking correct on how to use this? Something that I am missing?
I did the following:
"C:\Program Files (x86)\eviware\soapUI-Pro-3.0.1\bin\loadtestrunner.bat" LoadTestWithLightWeightAdapterComponents.xml -n1 -m10 -r -fResults -Ppropertyname=value
I would think I should be able to read the property using this syntax:
log.info("read commandline value = " + project.getPropertyValue("propertyname") );
But my log indicates that the value is null:
2010-04-08 11:52:59,197 INFO [log] read commandline value = null
Is my thinking correct on how to use this? Something that I am missing?