Reputation: 47
I tried using dependencies and establishing a "lineal" flow of execution through those dependencies, but this solution was a little bit inefficient since there are tests that actually can run without having to ensure another test passed before they are being executed.
So, the main problem with dependencies is if a test fails in the execution, TestNG doesn't execute the rest of them and I don't want this behavior.
Also, the order I need for my test suite is not lineal, for example: Test 1 -> Test 2 -> ... -> Test n
Actually, my ordering is more like a tree:
(Above example is hypothetical and only tries to describe my test scenario)
I tried using priorities but they seem not to work like this. Do you have a recommendation about this guys? Thank you for your help and sorry for the noob question.
Upvotes: 0
Views: 622
Reputation: 387
In this case, you can mix priority with depends on: Check here a tutorial
Upvotes: 1