Service Virtualization

  • 1.  How to exit from testsuite if the main test case fails?

    Broadcom Employee
    Posted Jun 05, 2017 06:47 AM

    Hi,

     

    I have a main test suite which calls multiple test suites containing testcases. The first suite has a test case where it checks whether application is up or not. Now even if my the application is down all the test suites are running. Is there a way that if my first test case fails in my first test suite, it should not run the other test suites?

     

    regards

    Irfan



  • 2.  Re: How to exit from testsuite if the main test case fails?

    Broadcom Employee
    Posted Jun 07, 2017 06:19 PM

    I was thinking maybe this might work, since I could not think of another way for the other suites to not execute.

     

    Have a Test Suited with a Test case I know will fail.

     

     

    Have another Suite:

     

    Create a new test case that calls the suites with REST steps that calls lisa-invoke:

     

    First step:

     

     

    I create an XML XPath Assertion to look at the fail count that comes back from lisa-invoke if the Suite fails:

     

    If there is a failure, then the next step does not get executed, the test ends there.

     

    Others might know of a better method, but thought this might work.



  • 3.  Re: How to exit from testsuite if the main test case fails?

    Posted Jun 08, 2017 06:34 AM

    Irfan,

     

    Let us know if Marcy's recommendation helped you out with this issue.