How to execute @Test methods in a particular order in

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to execute @Test methods in a particular order in

tulsi.tester
Hi All,

I have 3 @Test methods in my testng class. For eg:

@Test
void method1(){}
@Test
void method2(){}
@Test
void method3(){}

My requirement is that i want to execute the above methods in the following order

method2,method3 and then method1.

Please let me how would i do this. I tried with dependsOnMethods, dependsOnGroups





Reply | Threaded
Open this post in threaded view
|

Re: How to execute @Test methods in a particular order in

softwaretestingforum
Administrator
It's difficult to answer it with out knowing your code.
This might help - http://stackoverflow.com/questions/2669576/order-of-execution-of-tests-in-testng
~ seleniumtests.com