Alexey,
>>>> Creating a new list to return, and filling it with multiple copies of the corresponding IMethodInstance elements from the original list - does not help.
Why do you say so? Can you please help elaborate ?
The other option that you can use is to basically start duplicating XmlTest/XmlClass objects by implementing the IAlterSuiteListener, Would that help ?
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.com/
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+...@googlegroups.com.
To post to this group, send email to testn...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
import java.util.LinkedList;import java.util.List;import org.testng.IMethodInstance;import org.testng.IMethodInterceptor;import org.testng.ITestContext;public class InterleaveExampleListener implements IMethodInterceptor {@Overridepublic List<IMethodInstance> intercept(List<IMethodInstance> methods, ITestContext context) {List<IMethodInstance> retVal = new LinkedList<IMethodInstance>(methods);retVal.add(methods.get(0));retVal.add(methods.get(0));retVal.add(methods.get(1));retVal.add(methods.get(1));retVal.add(methods.get(0));retVal.add(methods.get(0));retVal.add(methods.get(1));return retVal;}}
import org.testng.Reporter;import org.testng.annotations.Listeners;import org.testng.annotations.Test;@Listeners({ InterleaveExampleListener.class })public class InterleaveExample {@Testpublic void test0() {Reporter.log("this is test 0");}// @Test(dependsOnMethods = { "test0" }, enabled = true)@Testpublic void test1() {Reporter.log("this is test 1");}// @Test(dependsOnMethods = { "test1" }, enabled = true)@Testpublic void test2() {Reporter.log("this is test 2");}}