Forum Discussion

kaiwong's avatar
kaiwong
New Contributor
10 years ago

testrunner environment and override properties issue

When running testrunner in the command line, the -E flag supposely use for switching environment but somehow it affect the override property when the project Environment saved mismatch with the -E flag.

 

Depending the state of the environment state, the context.expand('${#Project#testProp}') will not pick up the property override from the command line(e.g. -PtestProp="****myDevtestProp****")

 

 

I am using Ready API 1.4.1, please try with attached project and sample test runner below:

 

Testrunner 1.

C:\Program Files\SmartBear\ReadyAPI-1.4.1\bin>testrunner.bat -E"dev" -s"TestSuite 1" -PtestProp="****myDevtestProp****"  C:\temp\DemoProj-soapui-project.xml

 

Testrunner 2.

C:\Program Files\SmartBear\ReadyAPI-1.4.1\bin>testrunner.bat -E"Default" -s"TestSuite 1" -PtestProp="****myDevtestProp****"  C:\temp\DemoProj-soapui-project.xml

 

 

I think this is a bug in Ready API 1.4.1 PRO