我有5个测试用例,我希望它们反复运行5-6次。我怎样才能做到这一点?请帮忙。对于Profiling目的,我希望它们继续运行。
创建一个列出5个测试用例的测试套件,然后转到脚本选项卡,在@SetUp方法中,将true设置为false并添加For循环的一行。不太确定你的意思是“继续运行”,但也许不是For循环,你可以插入一个While循环。 For循环或While循环都解释了[这里](https://www.katalon.com/resources-center/tutorials/common-condition-control-statements/)
如果测试用例可以彼此独立地执行,那么你可以做一些事情(使用Groovy):
5.times {
Mobile.callTestCase(findTestCase("Test Case 01"), [:])
Mobile.callTestCase(findTestCase("Test Case 02"), [:])
Mobile.callTestCase(findTestCase("Test Case 03"), [:])
Mobile.callTestCase(findTestCase("Test Case 04"), [:])
Mobile.callTestCase(findTestCase("Test Case 05"), [:])
}