order of listeners

20 views
Skip to first unread message

Idan Shay

unread,
Apr 13, 2017, 3:32:26 PM4/13/17
to testng-users
Hi,

I am using both IMethodInterceptor and IAnnotationTransformer listeners.
In the IMethodInterceptor  I can (depend on parameter) select only parts of tests.

The problem is that the IAnnotationTransformer  runs before so it go on all the tests although many of them are not going to run.

Is there a way to make IMethodInterceptor   runs before ?

Isn't it more logic to first have the list of all methods that need to run and than go over them in the IAnnotationTransformer   ?

Thanks

Reply all
Reply to author
Forward
0 new messages