📜  testng 中的优先级测试 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:41.653000             🧑  作者: Mango

代码示例1
If we do not prioritize the test methods, then the test methods are selected 
alphabetically and executed. If we want the test methods to be executed 
in the sequence we want, then we need to provide the priority along with 
the @Test annotation.

@Test(priority=2)  
public void test1()  
{  
System.out.println("Test1");
}