I want to run a specific test class before running other tests in the same package using testng xml.
test_package ------------- testclass1 testclass2 testclass3 I want testclass3 to run first.
<test name="Tests"> <packages> <package name="tests.*"/> </packages> </test>--> There are multiple classes inside the package but i want selected test class to run ahead of all.
Edit: Selenium grid is being used. I want longer tests to run first so that other tests will run parallelly. Currently the longer test runs at last and other nodes are idle making the test duration longer