Forum Discussion

abhijeetshinde's avatar
abhijeetshinde
Occasional Visitor
7 years ago

Controlling Test Case Run using Events

Hi Everyone,

 

Is there any way to control the execution of Test case under test suite when test suite is executed based on entry of test case in associated Excel file.

Excel may have all test cases from test suite listed in it OR may not have few test cases from Test Suite.

If we don't find TC entry in excel, that particular TC should not be executed by SOAP when entire Test Suite is executed.

 

Can someone guide how this can be achieved?

 

Thanks.

1 Reply

  • Lucian's avatar
    Lucian
    Community Hero

    Hi, I do have an idea for you.

     

    First of all, let's say that I have the following SoapUI project:

     

    Now I want to run only few test cases as presented in the excel file:

     

     

    So what I did is I created a new Runner test suite and disabled all others. In the Runner test case I created a loop and with a help of a groovy script I am executing tests one by one as given by the excel file:

     

     I attached the SoapUI project for you.

     

    Cheers!