Service Virtualization

  • 1.  Unable to create driver - while running Selenium tests using DevTest

    Posted Feb 03, 2016 11:26 AM

    Message:     Test run failed: unable to create driver.

    ----------------------------------------------------------------------------

    | Trapped Exception: Test run failed: unable to create driver.

    | Trapped Message:   java.lang.RuntimeException: Test run failed: unable to create driver.

    ----------------------------------------------------------------------------

     

    I am getting above error message while running selenium tests in devtestin, I tried both IE and Firefox.

     

    Please help me in resolving this issue.



  • 2.  Re: Unable to create driver - while running Selenium tests using DevTest

    Posted Feb 03, 2016 11:53 AM

    Can you post complete error message (stack trace), include any text below "unable to create driver" ?



  • 3.  Re: Unable to create driver - while running Selenium tests using DevTest

    Posted Feb 03, 2016 03:09 PM

    Trapped Exception: Test run failed: unable to create driver.

    | Trapped Message:   java.lang.RuntimeException: Test run failed: unable to create driver.

    ----------------------------------------------------------------------------

    STACK TRACE

    java.lang.RuntimeException: Test run failed: unable to create driver.

      at com.sebuilder.interpreter.TestRun.initRemoteWebDriver(TestRun.java:215)

      at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:371)

      at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:306)

      at com.itko.lisa.glass.SeleniumStep.execute(SeleniumStep.java:121)

      at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)

      at com.itko.lisa.test.TestCase.execute(TestCase.java:1280)

      at com.itko.lisa.test.TestCase.execute(TestCase.java:1195)

      at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1180)

      at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1048)

      at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)

      at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:961)

      at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)

      at java.lang.Thread.run(Unknown Source)

    Caused by: java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

      at java.lang.reflect.Constructor.newInstance(Unknown Source)

      at com.sebuilder.interpreter.TestRun.initRemoteWebDriver(TestRun.java:201)

      ... 12 more

    Caused by: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows:

    673840204133webdriver-profile\\extensions\\fxdriver@googlecode.com","installDate":1454516558307,"updateDate":1454516558307,"applyBackgroundUpdates":1,"bootstrap":false,"size":8440790,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":true,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"66.*"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":"x86-msvc"},{"os":"Linux","abi":null}],"multiprocessCompatible":false,"signedState":0}

    1454516559262 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"yvzDbIKKysMo","location":"app-global","version":"43.0.4","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1452141025491,"updateDate":1452141025491,"applyBackgroundUpdates":1,"skinnable":true,"size":24172,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"43.0.4","maxVersion":"43.0.4"}],"targetPlatforms":[]}

    1454516559262 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}

    1454516559264 DeferredSave.extensions.json DEBUG Save changes

    1454516559264 addons.xpi DEBUG Updating database with changes to installed add-ons

    1454516559264 addons.xpi-utils DEBUG Updating add-on states

    1454516559266 addons.xpi-utils DEBUG Writing add-ons list

    1454516559280 addons.manager DEBUG Registering shutdown blocker for XPIProvider

    1454516559281 addons.manager DEBUG Provider finished startup: XPIProvider

    1454516559281 addons.manager DEBUG Starting provider: LightweightThemeManager

    1454516559281 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager

    1454516559281 addons.manager DEBUG Provider finished startup: LightweightThemeManager

    1454516559281 addons.manager DEBUG Starting provider: GMPProvider

    1454516559286 addons.manager DEBUG Registering shutdown blocker for GMPProvider

    1454516559286 addons.manager DEBUG Provider finished startup: GMPProvider

    1454516559286 addons.manager DEBUG Starting provider: PluginProvider

    1454516559286 addons.manager DEBUG Registering shutdown blocker for PluginProvider

    1454516559286 addons.manager DEBUG Provider finished startup: PluginProvider

    1454516559287 addons.manager DEBUG Completed startup sequence

    1454516560996 addons.manager DEBUG Starting provider: <unnamed-provider>

    1454516560996 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>

    1454516560996 addons.manager DEBUG Provider finished startup: <unnamed-provider>

    1454516561047 DeferredSave.extensions.json DEBUG Starting write

    1454516561318 addons.repository DEBUG No addons.json found.

    1454516561318 DeferredSave.addons.json DEBUG Save changes

    1454516561320 DeferredSave.addons.json DEBUG Starting timer

    1454516561332 addons.manager DEBUG Starting provider: PreviousExperimentProvider

    1454516561332 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider

    1454516561332 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider

    1454516561334 DeferredSave.extensions.json DEBUG Write succeeded

    1454516561334 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17

    1454516561373 DeferredSave.addons.json DEBUG Starting write

    1454516561533 DeferredSave.addons.json DEBUG Write succeeded

     

     

    Build info: version: '2.46.0', revision: '61506a4624b13675f24581e453592342b7485d71', time: '2015-06-04 10:22:50'

    System info: host: 'C909070E269E95', ip: '172.22.36.189', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_72'

    Driver info: driver.version: FirefoxDriver



  • 4.  Re: Unable to create driver - while running Selenium tests using DevTest

    Posted Feb 03, 2016 04:18 PM

    FIrefox 43.0.4 is only supported in DevTest 9.1 and above. Try to downgrade Firefox to version 38.0.6 and see if it works for you.

    After Firefox is installed, remember to turn off the automatically install updates setting in Options -> Advanced -> Update tab.



  • 5.  Re: Unable to create driver - while running Selenium tests using DevTest

    Posted Nov 16, 2016 10:21 AM

    Hi,

    I have the same problem. Do you know which IE version is supported by Devtest v9.5.1?

    Khuddus.Abdul - Was your problem resolved?

     

    Thanks,

    Rahul



  • 6.  Re: Unable to create driver - while running Selenium tests using DevTest

    Posted Nov 16, 2016 12:03 PM

    For DevTest 9.5.1 the following browser version are supported.

    • Firefox :   46.0.1 
    • IE : version 11.x

     

    Which IE Driver you are using?  It's recommended to go with 32-bit Windows IE Driver. You can download it from here http://selenium-release.storage.googleapis.com/2.53/IEDriverServer_Win32_2.53.1.zip 

    Please make sure that this is available on your $PATH.

     

    In your DevTest project make sure you are setting these properties in the project configuration.

    • selenium.browser.type             IE
    • selenium.ie.driver.path            <Fully qualified path to WebDriver>\IEDriverServer.exe