The following are test methods in the TestNGtest case class :
@Test (priority=0)
public void test01() {
}
@Test (priority=1, dependsOnMethods="test01")
public void test02() {
}
@Test (priority=2)
public void test03() {
}
@Test (priority=3)
public void test04() {
}
Execution order test01 - test03 - test04 - test02. Well, that seems wrong, because by the time it is reached test02, the dependent test method is already running test01. Therefore, it test02should be done immediately. I believe the correct ordertest01 - test02 - test03 - test04
Is this an error in TestNG, or is intentionally for some reason that I do not have enough?
source
share