Forum Discussion

malj's avatar
malj
Contributor
3 years ago

Testrunner returns 0 even though the project fails

I am using testrunner.bat to run my first SoapUI project. In the first step of the only test in the only test suite, an org.apache.http.conn.HttpHostConnectException occurs because of a problem in the product under test. Even though the test fails and the project fails, testrunner sets ERRORLEVEL to 0. We have scheduled the test run in Jenkins and want the job to report failure so this is of course a problem. Any idea what is wrong? Last lines of the output shown below.

...

15:58:46,860 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [Basic Object Property Access], time taken: 0ms, status: FAILED
15:58:46,865 INFO [SoapUITestCaseRunner] Project [RP-C Web Services] finished with status [FAILED] in 21226ms
15:58:46,866 ERROR [SoapUITestCaseRunner] java.lang.Exception: TestCase [Basic Object Property Access] failed without assertions

15:58:46,867 ERROR [SoapUI] An error occurred [TestCase [Basic Object Property Access] failed without assertions
], see error log for details
java.lang.Exception: TestCase [Basic Object Property Access] failed without assertions

at com.eviware.soapui.tools.SoapUITestCaseRunner.throwFailureException(SoapUITestCaseRunner.java:519)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:435)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:202)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:137)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:112)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:122)
15:58:46,877 WARN [Tools] Could not delete temporary directory C:\Users\SESA15~1\AppData\Local\Temp\2acace27-9289-4e23-a394-1b55a4ae789e
15:58:46,891 WARN [Tools] Could not delete temporary directory C:\Users\SESA15~1\AppData\Local\Temp\5bf817e9-fb68-45ae-a74d-5af75c5805e0
15:58:46,892 WARN [Tools] Could not delete temporary directory C:\Users\SESA15~1\AppData\Local\Temp\df6c79ad-72b3-46b3-a650-7a7fe32e5808

No RepliesBe the first to reply