我有大约5个测试用例,我想让它们重复运行5-6次。我该怎么做呢?请帮帮忙。出于分析目的,我希望它们继续运行。
发布于 2018-08-09 00:25:13
创建一个Test Suite,列出5个测试用例,然后移动到Script选项卡,在@SetUp方法中,将true设置为false,并添加一行For循环。我不太确定“继续运行”是什么意思,但也许你可以插入一个While循环,而不是For循环。For循环或While循环都在here中解释
发布于 2018-08-20 16:14:18
如果测试用例可以相互独立地执行,您可以这样做(使用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"), [:])
}
https://stackoverflow.com/questions/51632121
复制相似问题