RE: How to run a Single test case on More than one Remote Machine ??

Hi All

I am able to run a test case on multiple browser after learning this from “ToolsQA” site. But i am little confuse in configuration of multiple Remote machine.

Could you please tell me how to run a test case on multiple Remote machine.

FYI: I am able to configure Hub and node hierarchy as one hub with multiple nodes.
I am confused on Parametrization of TestNG framework as well as Test case to handle this

nagesh1312 Default Asked on March 24, 2015 in Selenium WebDriver.
Add Comment
2 Answers

Nagesh,

It quite hard to undertsand your problem without seeing relevant part of your code. But from what I can gather from your explaination this what I can suggest

A Grid runs tests on machines based on the configurations of RemoteWebDriver that you have created. Grid will run the test on the machine which matches the Remote machines configuration.

The problem can be reduced to two steps
1. Create remoteWebDrivers with different configurations.
2. Pass these different remote webdrivers again and again to the same test or set of multiple tests

Step 1: Can be achieved by using a DataProvider which providers multiple remoteWebdrivers.
Step 2″: ┬áIf you use a DataProvider which provides multiple sets of RemoteWebDriver your tests will be run in loop for all the remote driver configurations.

If you are not able to to code this do let me know, I will try to put some coded example here

Virender

Professor Answered on March 25, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.