-
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
Running dependent and independent test methods in expected sequence #437
Comments
It is not clear why you want them to be run in sequence. |
You can use |
There are some scenarios where i need them to run in sequence.
After executing the test my output is : first i want to execute |
If your methods have an order, they are not really independent.
produces:
Change
and you still get
with a failed test. Or change
and you get
with one test failed and one test skipped. You can also have a diamond configuration:
and you get either
or
but |
I want to execute test methods in sequence. I have used classes in testng.xml with preserve-order set to true.
After executing the test my output is
in method create,
in method delete,
in method enter
But what I want is to first execute "create" then "enter" then "delete" method. Here delete is an independent test method.
I cannot use dependsOnMethods for delete method because if enter method fails then delete method will skip but i want that delete method has to be run after enter method no matter whether it is fail or pass
The text was updated successfully, but these errors were encountered: