I want to run the Selenium WebDriver (Java) test classes in the particular order using TestNG.
For eg. I have 3 classes such as Test1, Test2 and Test3. I want to run in the order Test2, Test1 and Test3. Is it possible without grouping?
I tried the following way, but I runs in its own order (Alphabetical order).
<suite name="MyTestSuite" verbose="4">
<test name="MyTest">
<classes>
<class name="com.mypackage.Test2" />
<class name="com.mypackage.Test1" />
<class name="com.mypackage.Test3" />
</classes>
</test>
Is there any other way to do this? Without grouping is this possible?