Define the Class level priority and order of execution
I have many test packages and many classes, I don't want to have test-suite.xml with individual class name, instead I would like to declare using group and package in the test-suite file.
The issue is I want to determine the execution of the particular class file by using priority(can use annotation).
Can some one please suggest me how to achieve this ? Tried using IMethodIntercepter that is useful for the test methods within the same class.
My current suite file looks as below.
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite thread-count="5" verbose="2" name="unstable suite" parallel="false" annotations="JDK" configfailurepolicy="continue"> <test name="unstable" enabled="true"> <groups> <run> <include name="config" /> <include name="group1" /> <include name="group1_unstable" /> <include name="group2" /> <include name="group2_unstable" /> <include name="group3" /> <include name="group3_unstable" /> </run> </groups> <packages> <package name="com.test.pkg1" /> <package name="com.test.pkg2" /> <package name="com.test.pkg3" /> </packages> </test> </suite>
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/groups/opt_out.