I have included preserve-order="true" for the <test></test>. But when I execute this from my build.xml with ANT, the actual order goes like this: 1. login 2. addNew 3. scheduleByAddNew 4. search (This group starts execution in middle when scheduleByAddNew has just started. Don't know why!! And then fails) 5. scheduleBySearch (Skipped)
When I see the execution logs, I see that TestNG tries to execute addNew & scheduleByAddNewafter login, and suddenly search group starts executing. Is there any possibility of TestNG parallel execution happening here?? Also, if I have specified preserve-order as true then it should run the groups as defined no matter what right? Help needed!!!