Java 在SeleniumWebDriver中运行测试脚本100次

Java 在SeleniumWebDriver中运行测试脚本100次,java,selenium,selenium-webdriver,automation,testng,Java,Selenium,Selenium Webdriver,Automation,Testng,目前我正在使用Selenium Webdriver,对于annotation,我正在使用testNG,在我的代码中,我有100个带有@test annotation的测试脚本。我只想100次运行我的测试用例中的一个。我如何做到这一点。我非常感谢使用适当示例的任何建议 在@Test注释中仅运行脚本500次——您可以添加一个invocationCount属性,该属性包含您想要运行的次数 @Test(invocationCount = 100) public void testMethod() { }

目前我正在使用Selenium Webdriver,对于annotation,我正在使用testNG,在我的代码中,我有100个带有@test annotation的测试脚本。我只想100次运行我的测试用例中的一个。我如何做到这一点。我非常感谢使用适当示例的任何建议


@Test
注释中仅运行脚本500次

——您可以添加一个invocationCount属性,该属性包含您想要运行的次数

@Test(invocationCount = 100)
public void testMethod() {
}

@Test
注释中,您可以添加一个invocationCount属性,该属性具有您想要运行它的次数

@Test(invocationCount = 100)
public void testMethod() {
}

是的,投票通过,用于文件编制。谢谢投票通过的文件。谢谢您