我有一个场景,我在SOAPUI中有4个测试套件,每个测试套件都有可以并行执行的测试用例。但是一次只能执行一个套件。
监控功能只能监控测试用例,而不能监控套件的完成情况。
所以有人可以帮我执行这样的场景。
由于
def testSuites = context.testCase.project.getTestSuiteList()
def properties = new com.eviware.soapui.support.types.StringToObjectMap()
log.info("Number Test Suites Present in the Project :- "+testSuites.size())
testSuites.each
{
log.info("########################################################")
def testCases = it.getTestCaseList()
log.info("Number Test Cases Present :- "+testCases.size())
testCases.each
{
log.info("Running the Test Case :- "+it.name)
runner = it.run(properties, true)
}
// Here after all test cases are kicked off asynchornously, I would like to wait until the suite is finished
}
答案 0 :(得分:0)