I need to run tests from 2 classes with TestNG.
The testng.xml configuration specifies this:
<classes>
<class name="com.xyz.TestA"></class>
<class name="com.xyz.TestB"></class>
</classes>
- TestA has methods: i1, i2, i3, i4
- TestB has methods: j1, j2, j3, j4
The tests run in the following sequence:
i1, i3, j1, j4, i2, i4, j2, j3
Does anybody know the reason?
Pls kindly help~
Many thanks!
If you are using the latest TestNG, use “preserve-order”: