sridevihiranya
8 years agoOccasional Contributor
How to run a specific testSuite using groovy script?
I have multiple testSuites, eg: A,B,C
I want to run A TestSuite from B TestSuite. How can I do this in readyAPI?
Here is the groovy script which does what you are looking for.
import com.eviware.soapui.support.types.StringToObjectMap //Provide the name of the suite you want to run def suiteNameToExecute = 'TestSuite1' def runSuite = { suiteName, async = true -> def suite = context.testCase.testSuite.project.testSuites[suiteName] suite.run([] as StringToObjectMap, async) } runSuite(suiteNameToExecute, false)