-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution order alternates between diferent classes #438
Comments
I am experiencing this same problem. I posted on the user group, but received no reply... https://groups.google.com/forum/#!topic/testng-users/tRJNxB-eihc |
I think the problem in my case is with the dependsOnGroups, it looks like when a tes depends on a group testng start to run the test in the other class that doesn't depends. Cause i remove the dependsOnGroups and now the test run fine. |
Experienced exactly the same issue after upgrading from TestNG 6.1.1 to 6.8 |
It looks like TestNG executes those test methods (from different test classes) which don't depend on any method first and then executes those with dependency |
Using different test tags to run my tests, fix my problem but i dont like that i have to do this. |
I have two classe that inherited from a abstracc superclass, in class 1 i have some methosds that depends between them, this is just for make execution orden in that class, the other class only has one method, when i run a single class my test pass, but if i run all the class the execution orden alternates, i mean firs it executes some methods of class 1 and then the one of class 2, i need that if it starts executin class1 or class 2 firs ends of execute that class and after that executes the other.
code of the classes:
The text was updated successfully, but these errors were encountered: