TestNg Messes method execution order when using packages in testng.xml and depends on

72 views
Skip to first unread message

Dharshana

unread,
Dec 2, 2012, 9:41:38 PM12/2/12
to testn...@googlegroups.com
Hi All,

I have a test suite where it uses

  1. Packages in testng xml 

  2. Depends on methods in test classes. 

  3. And i have methods with same name in different classes. 

  4. Im using method interceptor.

When i execute tests it does not execute and order test methods based on classes. When i see at the classes loaded at method interceptor it shows all methods available in the package. And i notice the method interceptor is getting hits several times with incorrect method listings.

This works fine with testng 6.1.1 but from 6.3 above this sems not working. Tests are failed because of the not executing tests with out proper classes based order.

Do i have any work around here. Please point me if there is any workaround i can use.


Thank You,

Dharshana.

Reply all
Reply to author
Forward
0 new messages