I have three methods as mentioned below, two with priority ( 0 , 1 ) and third method(Test) with no priority attribute. What is the order of execution. Code snippet given below..
@Test(priority = 1)
private void test1() {
System.out.println("Test Priority One- Revision");
}
@Test(priority = 0)
private void test2() {
System.out.println("Test Priority Zero - Revision");
}
@Test
private void ztestNP() {
System.out.println("Test NoPriority- Revision");
}
What is the expected Order ? I expected
Test Priority Zero - Revision Test
Priority One- Revision Test
NoPriority- Revision
But Getting
Test Priority Zero - Revision
Test NoPriority- Revision
Test Priority One- Revision
Your clarification helps !!! Thank you !!!