Forum Discussion

kannan's avatar
kannan
Occasional Contributor
4 years ago

Calling a TestSuite from test step of another Test case

 I have a requirement to call a Test suite from test step of another Testcases.     Project structure   Our Project structure is  1.TestSuite1      1.1 TestSuite1_Positive        1.2 TestSuite...
  • aaronpliu's avatar
    4 years ago

    Hi kannan ,

     

    yes, it should be easy to implement it with groovy scripts.

     

     

    // groovy

    def testSuiteList = ["TestSuite1", "TestSuite2", "TestSuite3"]

    def ts= null

    testSuiteList.each {

        ts = testRunner.testCase.testSuite.project.testSuites[it]

        ts.run(new com.eviware.soapui.support.types.StringToObjectMap(), false)

    }

     

    Thanks,

    /Aaron