Forum Discussion

argoet's avatar
argoet
New Contributor
12 years ago

TestCase Runner (Option "-I" doesn't work)

Hello i'm newbie here and on SoapUI also
I try to work with TestCase Runner (With the option "-I' ==> -I Do not stop if error occurs, ignore them)
But even i had an Error : the runner stop (I would like that it continue with others tests)
What is the good option for scan all my TestCases ?
Thank you for your Help

Environnement Windows 7 SoapUi 5.0.0 (On Linux i have the same problem)

Running SoapUI TestRunner for [MyDear]
directory: D:\Util\SoapUI-5.0.0\bin\.
command: cmd.exe /C testrunner.bat -sTSMyD1 -cTC01 -I D:\My-soapui-project.xml
SoapUI 5.0.0 TestCase Runner
Configuring log4j from [D:\Util\SoapUI-5.0.0\bin\soapui-log4j.xml]
17:03:21,887 INFO [DefaultSoapUICore] initialized soapui-settings from [D:\Userlibraries\yr14981\soapui-settings.xml]
17:03:22,471 INFO [WsdlProject] Loaded project from [file:/D:/Userlibraries/yr14981/Documents/MyDear-soapui-project.xml]
17:03:23,269 INFO [SoapUITestCaseRunner] Running SoapUI tests in project [MyDear]
17:03:23,270 INFO [SoapUITestCaseRunner] Running TestCase [TC01]
17:03:23,274 INFO [SoapUITestCaseRunner] Running SoapUI testcase [TC01]
17:03:23,279 INFO [SoapUITestCaseRunner] running step [searchCustomer - WS-01]
17:03:27,073 INFO [SoapUITestCaseRunner] Assertion [SOAP Response] has status VALID
17:03:27,073 INFO [SoapUITestCaseRunner] Assertion [Contains] has status VALID
17:03:27,073 INFO [SoapUITestCaseRunner] Assertion [XQuery Match] has status FAILED
17:03:27,073 ERROR [SoapUITestCaseRunner] ASSERTION FAILED -> XQuery Match Assertion failed for path [count(//searchResult)] : ComparisonFailure:expected:<[8]> but was:<[9]>
17:03:27,073 ERROR [SoapUITestCaseRunner] searchCustomer - WS-01 failed, exporting to [D:\Util\SoapUI-5.0.0\bin\TSMyD1-TC01-searchCustomer__WS01-0-FAILED.txt]
17:03:27,137 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [TC01], time taken: 3779ms, status: FAILED
17:03:27,137 INFO [SoapUITestCaseRunner] TestCase [TC01] finished with status [FAILED] in 3779ms

1 Reply

  • GiscardN's avatar
    GiscardN
    Frequent Contributor
    Hi,

    With this option in your command (-cTC01), you are running TestCase "TC01" not the whole TestSuite. So if that one case fails, the -I has no effect.
    Remove the -c option from your command and it should run the entire TestSuite without stopping in case of error.

    Regards,

    Giscard
    SmartBear Software