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,190 points
1,144 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 24, 2020 by Niroj
• 82,840 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 23, 2019 in Selenium by Farah
1,172 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 20, 2019 in Selenium by Abha
• 28,140 points
2,068 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,140 points
11,210 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 24, 2020 in Selenium by Niroj
• 82,840 points
3,016 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
• 170 points
4,956 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP