I have some inherited TestNG code, using a @Factory to create test cases. All works fine.
However even though the test cases are certainly in order when returned from the @Factory method, they aren’t executed in that order. I’d like to execute them in order for ease of debugging (easier on the developer if it keeps the tests together than some random order).
Is there an easy way to do this?
I’m using TestNG 5.9 but can upgrade if needs be.
Thanks.
I am currently trying to do the same. I found the following maybe that helps you:
http://beust.com/weblog2/archives/000479.html
http://testng.org/doc/documentation-main.html#methodinterceptors
If I get some sort of solution for my problem I could add some of my code here if you want.
EDIT
I am checking for 2 Kinds of TestClasses that should be executed in the order 1 2 1 2 1 2 not 1 1 1 2 2 2 as done by TestNG
}
Hope that helps. If you got questions ask.