无法获取 soapUI groovy 脚本来监控测试套件并等待其完成

Cant get soapUI groovy script to monitor a testsuite and wait until its finished

我有一个场景,我在 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
}

使用图像中突出显示的这些选项

1 个选项:- Select 在项目级别。它将使套件 运行 一个接一个

2 选项:- Select 套件级别。它将使测试用例运行并行

check point 2 here