wood burning stoves*
The moose likes Testing and the fly likes Need Help on  TestNG  framework. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Need Help on  TestNG  framework." Watch "Need Help on  TestNG  framework." New topic
Author

Need Help on TestNG framework.

Mahesh Karehonna
Greenhorn

Joined: Apr 02, 2013
Posts: 6
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");
}
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help on TestNG framework.
 
Similar Threads
Thread Related Problem
Method name at run time
Set Thread priorities based on certain conditions
accessing resources from a jar file.
Time in a program issues