TestNG mixes tests from different classes when executing. Each class has a few tests. And instead of executing like this:
- FirstTestClass firstTest
- FirstTestClass secondTest
FirstTestClass thirdTest
SecondTestClass firstTest
- SecondTestClass secondTest
- SecondTestClass thirdTest
It executes like this, mixing tests from each class:
- FirstTestClass firstTest
- SecondTestClass firstTest
- FirstTestClass secondTest
- SecondTestClass secondTest
- FirstTestClass thirdTest
- SecondTestClass thirdTest
This is my XML:
<suite name="Mobile App Automation" verbose="1">
<test name="Android">
<parameter name="OS" value="android"/>
<parameter name="remote" value="true"/>
<classes>
<class name="Test.FirstTestClass"/>
<class name="Test.SecondTestClass"/>
</classes>
</test>
All my tests have the priority parameter set. But it's supposed to affect only tests inside a class, not EVERY test of the project, which is happening now.
Any hints?