Closed drarghya closed 7 years ago
this issue works as design as test has dependsOnMethods attribute will execute last to prevent creating cycles with priority.
The question is how does it work when I run it from eclipse and why not when I execute it from the command as a jar file ?
I used v6.8.7 and it works the same for me in eclipse and in command line. But it's possible it works different in eclipse and command line as the eclipse plugin point to the testng.jar inside the plugin which could have different version than the one run on the command line.
@huyto How to update testng.jar in eclipse plugin?
Hi, I have a scenario where I have 6 test methods that need executed in order. The first one in the order depends on another test method, and the last method in the order also depends on a different test method. So in total there are 6 tests.
Here's the example:
Now this sequence works fine when I remove the dependsOnMethods attribute from the setupTest and teardownTest methods. The moment I add it back, the sequence goes for a toss, it executes initiateSetup, runTest, initiateTeardown, setupTest, teardownTest in this order. I thought this was fixed in a previous release, isn't that the case ?
I am using TestNG testng-6.2.1.jar