I have four test classes,using selenium grid, I want to execute two test classes on first and other two on second node. On first node two test classes should executes in sequence and other two test classes should be executed on second node (at the same time). So it could be in sequential + parallel execution. I am using testNG.xml for it and I have added parallel="tests". I used dependsOnMethod in test classes. But when we execute this setup test classes executes in parallel on each node not in sequence.
Do you guys have any idea, help me!!