Forum Discussion

joinkumaresh's avatar
joinkumaresh
New Contributor
13 years ago

do not stop if error occurs, ignore them soapui[not working]

Hi All,
This is my first post in this forum. I would really appreciate if someone can help me resolve this issue.
(I could not get this working in both free as well SOAP-UI trail version.)

I have: do not stop if error occurs, ignore them soapui enabled in my launch settings.
Issue: even though "do not stop if error occurs, ignore them soapui" is enabled (I could see -I option at the top of the script run summary), SOAPUI fails to run all my test steps.
I want: all my 28 test steps in my testcase to be executed without getting interrupted or exit irespective of failures or errors in my test.

Running soapUI TestRunner for [SmokeTest]
directory: C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\.
command: cmd.exe /C testrunner.bat -sAnaphora -c"TestCase _Anaphora" -r -fC:\reports -R"TestCase Report" -FHTML -EDefault -I -S "C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\SmokeTest-soapui-project.xml"
soapUI Pro 4.5.1 TestCase Runner
Configuring log4j from [C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\soapui-log4j.xml]
13:15:38,053 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\ext\postgresql-8.3-604.jdbc3.jar] to extensions classpath
13:15:38,054 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\ext\postgresql-8.3-604.jdbc4.jar] to extensions classpath
13:15:38,054 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\ext\sqljdbc.jar] to extensions classpath
13:15:38,385 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\kumareshd\soapui-settings.xml]
13:15:38,578 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\PROGRA~2\SMARTB~1\SOAPUI~2.1\bin\scripts]
13:15:38,579 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\listeners\demo-listeners.xml]
13:15:39,435 INFO [WsdlProject] Loaded project from [file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-Pro-4.5.1/bin/SmokeTest-soapui-project.xml]
13:15:39,492 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\PROGRA~2\SMARTB~1\SOAPUI~2.1\bin\scripts]
13:15:39,935 INFO [SoapUIProTestCaseRunner] Running soapUI tests in project [SmokeTest]
13:15:39,995 INFO [SoapUIProTestCaseRunner] Running TestCase [TestCase _Anaphora]
13:15:40,007 INFO [SoapUIProTestCaseRunner] Running soapUI testcase [TestCase _Anaphora]
13:15:40,051 INFO [SoapUIProTestCaseRunner] running step [Groovy Script]
13:15:40,573 INFO [log] C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\anaphora.txt
13:15:40,661 INFO [log] Reading line : 1 / 28
13:15:40,676 INFO [SoapUIProTestCaseRunner] running step [Property - Looper]
13:15:40,715 INFO [SoapUIProTestCaseRunner] running step [HTTP Test Request]
13:15:41,092 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
13:15:41,092 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /nova/resolver/sync_input HTTP/1.1
13:15:41,580 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
13:15:41,587 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
13:15:41,905 INFO [SoapUIProTestCaseRunner] Assertion [XPath Match] has status VALID
13:15:41,905 INFO [SoapUIProTestCaseRunner] running step [Groovy Script - Data Loop]
13:15:41,923 INFO [log] Iterate Next Loop
13:15:41,924 INFO [SoapUIProTestCaseRunner] running step [Groovy Script]
13:15:41,924 INFO [log] C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\anaphora.txt
13:15:41,926 INFO [log] Reading line : 2 / 28
13:15:41,927 INFO [SoapUIProTestCaseRunner] running step [Property - Looper]
13:15:41,927 INFO [SoapUIProTestCaseRunner] running step [HTTP Test Request]
13:15:42,023 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
13:15:42,023 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /nova/resolver/sync_input HTTP/1.1
13:15:43,030 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
13:15:52,244 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
13:15:52,248 INFO [SoapUIProTestCaseRunner] Assertion [XPath Match] has status VALID
13:15:52,248 INFO [SoapUIProTestCaseRunner] running step [Groovy Script - Data Loop]
13:15:52,249 INFO [log] Iterate Next Loop
13:15:52,249 INFO [SoapUIProTestCaseRunner] running step [Groovy Script]
13:15:52,249 INFO [log] C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\anaphora.txt
13:15:52,250 INFO [log] Reading line : 3 / 28
13:15:52,250 INFO [SoapUIProTestCaseRunner] running step [Property - Looper]
13:15:52,250 INFO [SoapUIProTestCaseRunner] running step [HTTP Test Request]
13:15:55,780 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
13:15:55,780 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /nova/resolver/sync_input HTTP/1.1
13:15:56,425 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
13:15:56,426 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
13:15:56,430 INFO [SoapUIProTestCaseRunner] Assertion [XPath Match] has status VALID
13:15:56,431 INFO [SoapUIProTestCaseRunner] running step [Groovy Script - Data Loop]
13:15:56,431 INFO [log] Iterate Next Loop
13:15:56,431 INFO [SoapUIProTestCaseRunner] running step [Groovy Script]
13:15:56,431 INFO [log] C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\anaphora.txt
13:15:56,432 INFO [log] Reading line : 4 / 28
13:15:56,432 INFO [SoapUIProTestCaseRunner] running step [Property - Looper]
13:15:56,432 INFO [SoapUIProTestCaseRunner] running step [HTTP Test Request]
13:15:56,946 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
13:15:56,946 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /nova/resolver/sync_input HTTP/1.1
13:15:57,355 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
13:15:57,360 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
13:15:57,363 INFO [SoapUIProTestCaseRunner] Assertion [XPath Match] has status VALID
13:15:57,363 INFO [SoapUIProTestCaseRunner] running step [Groovy Script - Data Loop]
13:15:57,364 INFO [log] Iterate Next Loop
13:15:57,364 INFO [SoapUIProTestCaseRunner] running step [Groovy Script]
13:15:57,364 INFO [log] C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\anaphora.txt
13:15:57,365 INFO [log] Reading line : 5 / 28
13:15:57,365 INFO [SoapUIProTestCaseRunner] running step [Property - Looper]
13:15:57,365 INFO [SoapUIProTestCaseRunner] running step [HTTP Test Request]
13:15:57,961 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
13:15:57,961 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /nova/resolver/sync_input HTTP/1.1
13:15:58,472 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
13:15:58,473 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
13:15:58,476 INFO [SoapUIProTestCaseRunner] Assertion [XPath Match] has status VALID
13:15:58,477 INFO [SoapUIProTestCaseRunner] running step [Groovy Script - Data Loop]
13:15:58,477 INFO [log] Iterate Next Loop
13:15:58,477 INFO [SoapUIProTestCaseRunner] running step [Groovy Script]
13:15:58,477 INFO [log] C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\anaphora.txt
13:15:58,478 INFO [log] Reading line : 6 / 28
13:15:58,478 INFO [SoapUIProTestCaseRunner] running step [Property - Looper]
13:15:58,478 INFO [SoapUIProTestCaseRunner] running step [HTTP Test Request]
13:15:59,008 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
13:15:59,008 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /nova/resolver/sync_input HTTP/1.1
13:16:02,681 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
13:16:02,681 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
13:16:02,685 INFO [SoapUIProTestCaseRunner] Assertion [XPath Match] has status VALID
13:16:02,685 INFO [SoapUIProTestCaseRunner] running step [Groovy Script - Data Loop]
13:16:02,685 INFO [log] Iterate Next Loop
13:16:02,685 INFO [SoapUIProTestCaseRunner] running step [Groovy Script]
13:16:02,685 INFO [log] C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\anaphora.txt
13:16:02,686 INFO [log] Reading line : 7 / 28
13:16:02,686 INFO [SoapUIProTestCaseRunner] running step [Property - Looper]
13:16:02,687 INFO [SoapUIProTestCaseRunner] running step [HTTP Test Request]
13:16:03,485 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
13:16:03,485 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /nova/resolver/sync_input HTTP/1.1
13:16:05,751 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
13:16:05,766 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
13:16:05,774 INFO [SoapUIProTestCaseRunner] Assertion [XPath Match] has status FAILED
13:16:05,774 ERROR [SoapUIProTestCaseRunner] ASSERTION FAILED -> XPathContains comparison failed, expecting [France's capital city is Paris.], actual was [I don't think I can answer that question, but guessing it was on France? Try this web page: "Barclays | Home".]
13:16:05,774 ERROR [SoapUIProTestCaseRunner] HTTP Test Request failed, exporting to [C:\reports\Anaphora-TestCase__Anaphora-HTTP_Test_Request-6-FAILED.txt]
13:16:05,926 INFO [SoapUIProTestCaseRunner] Finished running soapUI testcase [TestCase _Anaphora], time taken: 22805ms, status: FAILED
13:16:05,933 INFO [SoapUIProTestCaseRunner] TestCase [TestCase _Anaphora] finished with status [FAILED] in 22805ms
13:16:08,827 INFO [SoapUIProTestCaseRunner] Created report [TestCase Report] to path [C:\reports\Anaphora\TestCase-Anaphora\TestCase Report.html]

SoapUI 4.5.1 TestCaseRunner Summary
-----------------------------
Time Taken: 28891ms
Total TestSuites: 0
Total TestCases: 1 (1 failed)
Total TestSteps: 27
Total Request Assertions: 7
Total Failed Assertions: 1
Total Exported Results: 1
13:16:08,860 INFO [WsdlProject] Saved project [SmokeTest] to [C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\bin\SmokeTest-soapui-project.xml - 9258 bytes

Thanks
join*
  • Hi Tim.

    Found the solution myself.

    Right-click TestCase->options-> uncheck (Abort on Error) & uncheck Fail TestCase on Error.
    Now, re-run. Now it should execute all the test steps withour any trouble, irrespective of any errors or failures.

    Cheers
    Join*
    • krogold's avatar
      krogold
      Regular Contributor

      Hi,

      Thanks for this one, I just pop in to add a little precision: You can configure it for all your test cases in

      "File"/"Preferences"/"Default Test Case Options"

       

      oops ... it seems to be available only in ReadyAPI ... we'll have to do it one by one, sorry

       

      Alex