请检查下面的代码,我正在执行此特定代码,但输出为 Got URL Testing Scenario Logged Out Logged In。
But as per priority given output should be different.
Kindly look into it and help me on this.
public class DependencyAnnotation {
@Test(groups={"PreCondition"},priority=0)
public void getURL(){
System.out.println("Got URL");
}
@Test(priority=1,dependsOnGroups={"PreCondition"})
public void login() {
System.out.println("Logged In");
}
@Test(priority=2)
public void testScenario(){
System.out.println("Testing Scenario");
}
@Test(priority=3)
public void logout(){
System.out.println("Logged Out");
}
}