How test runner prioritize test classes for execution

0 votes
Hi,

How test runner prioritize test classes for execution.(we didn't set any priorites)  .
Aug 23, 2020 in Selenium by Sri
• 3,010 points
273 views

1 answer to this question.

0 votes

Hello @Sri,

TestNG is a Testing framework, that covers different types of test designs like a unit test, functional test, end to end test, UI test and integration test.

You can run a single or multiple test cases in your Testng code.

If test priority is not defined while, running multiple test cases, TestNG assigns all @Test a priority as zero(0).

Now, while running; lower priorities will be scheduled first.

Different types of TestNG code Priority are:

  • TestNG code without Priority
  • TestNG code without Priority in Alphabetical Order
  •  Set Priority in TestNG
  • Methods with Same Priority
  • Combining both prioritized(having same priority) and non-prioritized methods

However, if you want to know more about how this Different types of TestNG code Priority works with example you can refer this:TestNG code Priority

Hope it helps you!!

Thank you!!

answered Aug 23, 2020 by Niroj
• 82,720 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

For given test scenarios, how can I write automation test script?

Hi Yogita, for this test scenario you ...READ MORE

answered May 22, 2019 in Selenium by Farah
335 views
0 votes
1 answer

How to exclude a particular test group from a test case execution?

Hey Catherine, you can use exclude tag in the ...READ MORE

answered Jun 19, 2019 in Selenium by Abha
• 28,040 points
740 views
0 votes
1 answer

How to stop test execution in Selenium if an error occured?

Hey Fatima, if you are using any ...READ MORE

answered Jul 4, 2019 in Selenium by Abha
• 28,040 points
6,000 views
0 votes
1 answer
0 votes
1 answer

How Test Runners interacting with main method

 As main() method is needed to run the ...READ MORE

answered Aug 23, 2020 in Selenium by Niroj
• 82,720 points
118 views
0 votes
2 answers

how to select text by span class

Do you just want to select the ...READ MORE

answered Feb 27, 2020 in Selenium by Etl
• 160 points
733 views