SiKing
14 years agoCommunity Expert
testRunner.fail() is broken
I have reproduced everything in SoapUI 4.0.1.
I have a test case that consist only of the following Groovy step:
When I run this from the UI, I get the following in the Log output:
This is undesirable. The third step should not get executed!
Further, when I run this same test from the command line (testrunner.bat), I get the following output in soapui-errors.log:
This is also undesirable.
I have a test case that consist only of the following Groovy step:
log.info("Start test")
testRunner.fail("Fail test")
log.info("End test")
When I run this from the UI, I get the following in the Log output:
Thu Sep 29 10:19:43 PDT 2011:INFO:Start test
Thu Sep 29 10:19:43 PDT 2011:ERROR:Failed with reason [Fail test]
Thu Sep 29 10:19:43 PDT 2011:INFO:End test
This is undesirable. The third step should not get executed!
Further, when I run this same test from the command line (testrunner.bat), I get the following output in soapui-errors.log:
2011-09-29 10:19:54,854 ERROR [errorlog] java.lang.Exception: TestCase [TestCase 1] failed without assertions
java.lang.Exception: TestCase [TestCase 1] failed without assertions
at com.eviware.soapui.tools.SoapUITestCaseRunner.throwFailureException(SoapUITestCaseRunner.java:506)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:410)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:89)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:115)
This is also undesirable.