【发布时间】:2020-06-26 16:58:21
【问题描述】:
有什么方法可以让我在 Selenium 中运行 3 次或更多次课程。所以它按以下顺序运行:
- 方法1
- 方法2
- 方法3
- 方法1
- 方法2
- 方法3
- 方法1
- 方法2
- 方法3
import com.test
Class A{
@Test(priority =1)
public void method1(){`System.out.print('method1');`}
@Test(priority =2)
public void method2(){`System.out.print('method2');`}
@Test(priority =3)
public void method3(){`System.out.print('method3');`}
}
【问题讨论】:
标签: java selenium automation testng pom.xml