Forum Discussion

Liberty_Informa's avatar
Liberty_Informa
Regular Contributor
12 years ago

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:

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.

2 Replies

  • Hi,

    This looks like a bug!

    Can you provide a sample project with steps to reproduce so that, it is easier for us to reproduce?

    Regards,
    Shadid
    SmartBear Sweden.
    • mvelaga's avatar
      mvelaga
      Senior Member

       

      I have one project which does a series of get and post calls

      i have setup jenkins to run the soap UI pro project at designated time intervals

       

      it runs for a single env but when i try to run for multiple env i get the attached errors and get an sucess message.

       

      attaching the log file,please review.