Liberty_Informa
12 years agoRegular Contributor
Environments feature Major Defect
Hi
When we run headless tests through shell script and provide environment value for which equivalent environment is not created in the soapUI project, we receive exceptions like following for each test case in the log:
However when I look at the test summary it prints :
I am not sure how that is possible. Looks like project runs with the active environment properties. Please clarify.
When we run headless tests through shell script and provide environment value for which equivalent environment is not created in the soapUI project, we receive exceptions like following for each test case in the log:
java.lang.Exception: Environment with name [xxxx] is missing in Project [YYYY]
at com.eviware.soapui.impl.wsdl.WsdlProjectPro.getProperty(SourceFile:1214)
at com.eviware.soapui.SoapUIProTestCaseRunner.initProjectProperties(SourceFile:311)
at com.eviware.soapui.tools.SoapUITestCaseRunner.initProject(SoapUITestCaseRunner.java:484)
at com.eviware.soapui.SoapUIProTestCaseRunner.initProject(SourceFile:161)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:343)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:89)
at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:58)
However when I look at the test summary it prints :
SoapUI 4.5.2 TestCaseRunner Summary
-----------------------------
Time Taken: 8395ms
Total TestSuites: 1
Total TestCases: 9 (0 failed)
Total TestSteps: 25
Total Request Assertions: 27
Total Failed Assertions: 0
Total Exported Results: 0
I am not sure how that is possible. Looks like project runs with the active environment properties. Please clarify.