top of page

FAILED CONFIGURATION: @BeforeMethod setUp org.openqa.selenium. WebDriverException: Error forwardin

  • Writer: khyati sehgal
    khyati sehgal
  • Aug 27, 2014
  • 2 min read

[TestNG] Running:
C:\Users\user\AppData\Local\Temp\testng-eclipse-2068414740\testng-customsuite.xml

FAILED CONFIGURATION: @BeforeMethod setUp
org.openqa.selenium.WebDriverException: Error forwarding the new session Empty pool of VM for setup Capabilities [{platform=WINDOWS, ensureCleanSession=true, browserName=internet explorer, version=}]
Command duration or timeout: 200 milliseconds
Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32'
System info: host: 'ksehgal', ip: '192.168.0.162', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_67'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
 

SKIPPED CONFIGURATION: @AfterMethod tearDown
SKIPPED: windowsTest

===============================================
Default test
Tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
===============================================
===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
===============================================

[TestNG] Time taken by org.testng.reporters.XMLReporter@6beb8639: 16 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 6 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@1a0c3b27: 44 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@21d195ca: 4 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@390f8c82: 23 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@6ba52c90: 7 ms

 

How I encountered this error

  1. Step1 Start selenium grid hub

 java -jar selenium-server-standalone-2.41.0.jar -role hub

 
  1. Step2 Start executing test scripts.

  2. Step3 You will get the above error.

Solution

  1. You does not have any node in the selenium grid whole set up.

  2. Start command prompt from your local or some machine and execute this command

 java -jar selenium-server-standalone-2.41.0.jar -role node -hub http://<hub-ip>:<hub-port>/grid/register
 
  1. Now run your tests again.

  2. They should run fine.

Conclusion

  1. To run your test scripts on a selenium grid network, you require a minimum of 1 hub and 1 node. So as to run your test scripts.

  2. Hub is responsible to take care of navigating your test scripts to the desired environment combination. And node will actually run your test scripts.

Comments


bottom of page