UrbanPro
true

Learn Selenium from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Priority in TestNG

S
Sarthak C.
22/11/2021 0 0

public class Priority {

@Test (priority=1)
public void login() {
System.out.println("login");
}

@Test
public void email1() {
System.out.println("email1");
}

@Test (priority=-2)
public void email2() {
System.out.println("email2");
}

//I want a particular test case to run first ....we have to give the ordering

//by default priority=0
//-3 -2 -1 0 1 2 3
//if we have the same priority of 2 test cases then it will run in chronological order
}

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Automated testing with the help of Behavior driven testing (BDT)
Behavior-driven development (BDD) is a popular and acknowledged Software testing methodology. Behavior driven testing (BDT) is not that popular, but is a companion of BDD. BDT can be used without BDD. BDD...

Facebook Analytics
Assume how the Facebook application will store the millions of customer's record in real-time: facebook = { 'jose': { 'name': 'jose', 'age': 33, 'hobby': , # cricket,football 'mobile': 1111111111, 'email':...

Access Specifiers รข?? Private, Protected, Public, Package-private
Access level modifiers determine whether other classes can use a particular field or invoke a particular method. The following table shows the access to members permitted by each modifier. Access...

Explicit Wait in Web-Driver
The Explicit Wait is used to tell the Web Driver to wait for certain conditions (Expected Conditions) The explicit wait is an intelligent kind of wait and applied on a particular element Explicit wait...

What Is The Difference Between Driver.close() And Driver.quit()?
• Driver.close(): It is used to close the browser or page currently in focus. close() is a webdriver command which closes the browser window which is currently in focus. During the automation process,...
X

Looking for Selenium Classes?

The best tutors for Selenium Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Selenium with the Best Tutors

The best Tutors for Selenium Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more