sequential + parallel execution

35 views
Skip to first unread message

Hitesh Sharma

unread,
Mar 1, 2014, 3:49:22 AM3/1/14
to seleniu...@googlegroups.com
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!! 

Krishnan Mahadevan

unread,
Mar 3, 2014, 1:39:14 AM3/3/14
to Selenium Users
Hitesh,
I would ask you "Why do you need this to be done at the Grid side" ? Why does your test have to worry about to which node is it getting routed to ? That is something for the Grid to decide. Your tests should only be worried about the fact "Can I run independently or am I dependent on some other test result before I can be run". And I guess TestNG already gives you this control.

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.wordpress.com/


On Sat, Mar 1, 2014 at 2:19 PM, Hitesh Sharma <hiteshs...@gmail.com> wrote:
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!! 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f1007178-56ab-4c14-b517-33e3ea109fd9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages