Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help on TestNG framework.

 
Mahesh Karehonna
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please look into the below code, i am getting output as
Got URL
Testing Scenario
Logged Out
Logged In

why priority is not getting consider here..?

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");
}
}
 
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!