mercredi 1 novembre 2017

Selenium Remote Configuration issue

I am getting this. Error and not understanding the missing part.

Testing with Chrome Driver

Message: Test method SeleniumGridSmokeTest.UnitTest1.TestMethod1 threw exception: System.InvalidOperationException: Unable to create new service: ChromeDriverService Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z' System info: host: 'seleniumnode', ip: '10.0.0.9', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-97-generic', java.version: '1.8.0_151' Driver info: driver.version: unknown (InsecureCertificate)

Testing with Firefox Driver

[5:18] Message: Test method SeleniumGridSmokeTest.UnitTest1.TestMethod1 threw exception: System.InvalidOperationException: Unable to create new service: GeckoDriverService Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z' System info: host: 'seleniumnode', ip: '10.0.0.9', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-97-generic', java.version: '1.8.0_151' Driver info: driver.version: unknown (InsecureCertificate)

These are the steps I have done to create selenium remote server.

A.I have created an 2 ubuntu boxes in the google cloud. **

  • One for the server
  • One for the node

B.Installed java onto both machines ( Checked java versions ) http://ift.tt/2eNOlDx

C.Downloaded Selenium-server-standalone-3.6.0.jar wget "http://ift.tt/2ilzO23" D.Run the hub command java -jar Selenium-server-standalone-3.6.0.jar -role hub

E.Run the node command

java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.6.0.jar -role node -hub http://xxxxxx:4444/grid/register

D.Saw the screens for the console

Calling Code enter image description here

These are the packages in my application enter image description here

HUB LOG

2017-11-01 17:00:17.120:INFO:osjs.Server:main: Started @985ms 17:00:17.121 INFO - Nodes should register to http://ift.tt/2gUzyXw 17:00:17.121 INFO - Selenium Grid hub is up and running 17:08:48.736 INFO - Registered a node http://10.0.0.9:5555 17:15:14.628 INFO - Got a request to create a new session: Capabilities [{browserName=chrome, platformName=ANY, version=, platform=ANY}] 17:15:14.628 INFO - Trying to create a new session on test slot {seleniumProtocol=WebDriver, browserName=chrome, maxInstances=5, platform=LINUX} 17:17:47.972 INFO - Got a request to create a new session: Capabilities [{acceptInsecureCerts=true, browserName=firefox}] 17:17:47.973 INFO - Trying to create a new session on test slot {seleniumProtocol=WebDriver, browserName=firefox, maxInstances=5, platform=LINUX} 17:18:15.651 INFO - Got a request to create a new session: Capabilities [{acceptInsecureCerts=true, browserName=firefox}] 17:18:15.651 INFO - Trying to create a new session on test slot {seleniumProtocol=WebDriver, browserName=firefox, maxInstances=5, platform=LINUX}

NODE LOG

17:17:48.015 INFO - Capabilities {acceptInsecureCerts=true, browserName=firefox, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.firefox.GeckoDriverService) 17:17:48.015 INFO - Capabilities {acceptInsecureCerts=true, browserName=firefox, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService) 17:18:15.649 INFO - Binding default provider to: org.openqa.selenium.chrome.ChromeDriverService 17:18:15.650 INFO - Found handler: org.openqa.selenium.remote.server.commandhandler.BeginSession@77bf54a0 17:18:15.650 INFO - /session: Executing POST on /session (handler: BeginSession) 17:18:15.651 INFO - Capabilities are: Capabilities {acceptInsecureCerts=true, browserName=firefox, } 17:18:15.651 INFO - Capabilities {acceptInsecureCerts=true, browserName=firefox, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.firefox.GeckoDriverService) 17:18:15.652 INFO - Capabilities {acceptInsecureCerts=true, browserName=firefox, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)

Aucun commentaire:

Enregistrer un commentaire