Ramakant Shukla

Ramakant Shukla

  • NA
  • 14
  • 2.6k

How to run NUnit tests on multiple nodes using Selenium Grid

Aug 21 2017 7:02 AM
Hi,
 
I am configuring the Selenium Grid for Selenium C# project. I have to execute multiple test cases and set of nodes. I have configured hub and nodes. In Uri if I am passing IP and port of node then test cases are running on that node but on entering hub's IP and port below exception is occuring.
 
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities = DesiredCapabilities.Chrome();
capabilities.SetCapability(CapabilityType.BrowserName, "chrome");
capabilities.SetCapability(CapabilityType.Platform, new Platform(PlatformType.Windows));
driver = new RemoteWebDriver(new Uri("http://HUB IP:PORT/wd/hub"), capabilities);
Exception:“ at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
at WalkMe.WrapperFactory.BrowserFactory.<>c__DisplayClass6_0.b__0() in
 
How I can run multiple test cases on different nodes in parallel?

Answers (1)