testng依赖,顺序,跳过

时间:2023-03-09 15:37:27
testng依赖,顺序,跳过

依赖测试
@test(dependsOnMethods = {"open"})

@test
public static void open{
    System.out.println("1111");
}
================================================
特定顺序执行
public clsss xx{
   @Test(priority = 2)
   public void test3(){
   System.out.println("");
}
}
===================================================
跳过某个测试方法
@Test(priority = 1,enabled = false)

================================================

相关文章