Java Code is below
@Test(priority=0)
public void test1(){
System.out.println("test1");
Reporter.log("1");
}
@Test(priority=1)
public void test2(){
System.out.println("test2");
Reporter.log("2");
}
@Test(priority=2)
public void test3(){
System.out.println("test3");
Reporter.log("3");
}
@Test(priority=3)
public void test4(){
System.out.println("test4");
Reporter.log("4");
}
Output:
test1
test2
test3
test4
Output in Reporter output for Default Suite
Reporter Output For Default Suite
test4
| 4
test3
| 3
test1
| 1
test2
| 2
In this example, execution of the methods is proper but In Reporter Output for Default Suite I am not able to get the log statements in order. Is there any way to get report statements in order?
Aucun commentaire:
Enregistrer un commentaire