How to execute same suite on different machines with different browsers ( Grid related query ) ?

74 views
Skip to first unread message

Vikram

unread,
Nov 19, 2015, 5:40:46 AM11/19/15
to Selenium Users
Hi All,

With Grid setup I could distribute test cases ( parallel execution ) on all available nodes.

Now I want to execute all test cases on all the nodes ( running on unique browser )

Please let me know how to achieve this ?

Thanks in advance.

Regards,
Vikram

Amogh Dhumal

unread,
Nov 19, 2015, 6:54:57 AM11/19/15
to Selenium Users
Hi Vikram,


Grid allows us to set the node configuration using parameter like -browser name etc. So you can use it for different machines on different browsers.

Eg here :-browser browserName=firefox,version=3.6,firefox_binary=c:\Program Files\firefox ,maxInstances=3, platform=WINDOWS




Regards,
Amogh D

Vikram

unread,
Nov 19, 2015, 11:39:39 PM11/19/15
to Selenium Users
Hi Amogh,

Thanks for reply but this won't solve my goal.

let me be more specific

1. Each machine / node with single browser

2. Instead of distributing test cases to existing nodes , want to execute all test cases in each of the nodes ( to check browser compatibility node 1 = chrome , node 2 = ff , node 3 = Edge etc )

Please let me know if you have achieved this.

Thanks,
Vikram

Amogh Dhumal

unread,
Nov 20, 2015, 12:22:05 AM11/20/15
to seleniu...@googlegroups.com
Hi Vikram,

We have done its using TestNG through which we are passing all different browsers as a input parameter  and set values for parallel run true and thread count as 3. So here each node will have FF,Chrome and IE . Here in TestNG suite names will be repeated but can be doable.

Regards,
Amogh D

--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/8Fu-1PKqVVc/unsubscribe.
To unsubscribe from this group and all its topics, 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/05bfb94f-cea6-41d0-bc81-c53a972609c2%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards,
Amogh Dhumal

Krishnan Mahadevan

unread,
Nov 20, 2015, 5:49:47 AM11/20/15
to Selenium Users
Vikram,

Just curious :

How does the distribution logic of the Grid interfere with your test intent [ which is basically "I want to run my web application tests against different browser/version/Platform combinations ].

The distribution logic of the Grid is something that your tests should be agnostic. But if you are bent upon having your test run on all nodes, then on a simple level you should just constrain all nodes to just support maxSessions as 1.
That way the Grid will try and find out a new node that can take in an execution request. If none are available, the request just piles up in the Grid's request queue and picked up once a node is available for execution.


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 Fri, Nov 20, 2015 at 10:09 AM, Vikram <vikra...@gmail.com> wrote:

--
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.

Vikram

unread,
Nov 23, 2015, 4:09:54 AM11/23/15
to Selenium Users
Hi Amogh,

Thanks for detailed info.

I'll try to replicate your setup with junit setup and update this thread.

Regards,
Vikram

Vikram

unread,
Nov 23, 2015, 4:12:45 AM11/23/15
to Selenium Users
Hi Krishnan,

My initial objective was to reduce test execution time. In order to achieve this have implemented parallel execution with Grid setup. 

But with this I'm covering only single browser. ( each node has single type of browser ) 

Now my 2nd goal is to do browser compatibility testing with grid setup. Each node having unique browser type

Regards,
Vikram
Reply all
Reply to author
Forward
0 new messages