Erro na execução HomePageValidation

Manoel Luiz Pereira Duarte Leal

Manoel Luiz Pereira Duarte Leal Publicado 27/07/2016 


Bom dia

Ao executar o teste da classe HomePageValidation, o navegador Firerfox é iniciado, porém, logo em seguida a execução do teste e encerrada e o navegador é fechado, não acessando a página de acordo com o caminho disponibilizado no config.properties e nem realizando os procedimentos da classe de teste HomePageValidation.

Já alterei no config.properties o navegador e já atualizei a dependencia do webdriver mas o problema ainda persistiu.

Obs: Estou utlizando o linux (distribuição ubuntu) como sistema operacional.

Segue abaixo o failure trace do erro:

org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows: e":true,"v":"47.0","st":1465217639000},"langpack-pt-BR@firefox.mozilla.org":{"d":"/usr/lib/firefox/browser/extensions/langpack-pt-BR@firefox.mozilla.org.xpi","e":true,"v":"47.0","st":1465217753000}},"app-system-share":{"ubufox@ubuntu.com":{"d":"/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox@ubuntu.com.xpi","e":false,"v":"3.2","st":1442597402000}}}1469624000505addons.xpiDEBUGNo changes found1469624000514addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi1469624000515addons.xpiDEBUGLoading bootstrap scope from /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi1469624000532addons.xpiDEBUGCalling bootstrap method startup on firefox@getpocket.com version 1.0.21469624000541addons.xpi-utilsDEBUGStarting async load of XPI database /tmp/anonymous8818942909038457775webdriver-profile/extensions.json1469624000543addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/features/loop@mozilla.org.xpi1469624000543addons.xpiDEBUGLoading bootstrap scope from /usr/lib/firefox/browser/features/loop@mozilla.org.xpi1469624000550addons.xpiDEBUGCalling bootstrap method startup on loop@mozilla.org version 1.3.21469624000577addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi1469624000577addons.xpiDEBUGLoading bootstrap scope from /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi1469624000580addons.xpiDEBUGCalling bootstrap method startup on e10srollout@mozilla.org version 1.01469624000582addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi1469624000585addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/extensions/langpack-pt-PT@firefox.mozilla.org.xpi1469624000588addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi1469624000590addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/extensions/langpack-pt-BR@firefox.mozilla.org.xpi1469624000597addons.managerDEBUGRegistering shutdown blocker for XPIProvider1469624000598addons.managerDEBUGProvider finished startup: XPIProvider1469624000598addons.managerDEBUGStarting provider: LightweightThemeManager1469624000598addons.managerDEBUGRegistering shutdown blocker for LightweightThemeManager1469624000599addons.managerDEBUGProvider finished startup: LightweightThemeManager1469624000600addons.managerDEBUGStarting provider: GMPProvider1469624000617addons.managerDEBUGRegistering shutdown blocker for GMPProvider1469624000618addons.managerDEBUGProvider finished startup: GMPProvider1469624000618addons.managerDEBUGStarting provider: PluginProvider1469624000619addons.managerDEBUGRegistering shutdown blocker for PluginProvider1469624000620addons.managerDEBUGProvider finished startup: PluginProvider1469624000621addons.managerDEBUGCompleted startup sequence1469624001165addons.xpi-utilsDEBUGAsync JSON file read took 0 MS1469624001166addons.xpi-utilsDEBUGFinished async read of XPI database, parsing...1469624001175addons.xpi-utilsDEBUGSuccessfully read XPI database1469624001206addons.managerDEBUGStarting provider: 1469624001206addons.managerDEBUGRegistering shutdown blocker for 1469624001207addons.managerDEBUGProvider finished startup: *** Blocklist::_loadBlocklistFromFile: blocklist is disabled1469624001483addons.managerDEBUGStarting provider: PreviousExperimentProvider1469624001483addons.managerDEBUGRegistering shutdown blocker for PreviousExperimentProvider1469624001483addons.managerDEBUGProvider finished startup: PreviousExperimentProviderJavaScript warning: https://normandy.cdn.mozilla.net/static/js/bundles/selfrepair-7575f6d27445b45bcffb.js, line 9825: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.createBuild info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'System info: host: 'manoel-PC', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-31-generic', java.version: '1.8.0_101'Driver info: driver.version: FirefoxDriverat org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:114)at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:191)at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:186)at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:182)at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:95)at br.org.cesar.common.Selenium.getDriver(Selenium.java:42)at br.org.cesar.test.BaseTestcase.beforeClass(BaseTestcase.java:28)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)at org.junit.runners.ParentRunner.run(ParentRunner.java:363)at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:e":true,"v":"47.0","st":1465217639000},"langpack-pt-BR@firefox.mozilla.org":{"d":"/usr/lib/firefox/browser/extensions/langpack-pt-BR@firefox.mozilla.org.xpi","e":true,"v":"47.0","st":1465217753000}},"app-system-share":{"ubufox@ubuntu.com":{"d":"/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox@ubuntu.com.xpi","e":false,"v":"3.2","st":1442597402000}}}1469624000505addons.xpiDEBUGNo changes found1469624000514addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi1469624000515addons.xpiDEBUGLoading bootstrap scope from /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi1469624000532addons.xpiDEBUGCalling bootstrap method startup on firefox@getpocket.com version 1.0.21469624000541addons.xpi-utilsDEBUGStarting async load of XPI database /tmp/anonymous8818942909038457775webdriver-profile/extensions.json1469624000543addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/features/loop@mozilla.org.xpi1469624000543addons.xpiDEBUGLoading bootstrap scope from /usr/lib/firefox/browser/features/loop@mozilla.org.xpi1469624000550addons.xpiDEBUGCalling bootstrap method startup on loop@mozilla.org version 1.3.21469624000577addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi1469624000577addons.xpiDEBUGLoading bootstrap scope from /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi1469624000580addons.xpiDEBUGCalling bootstrap method startup on e10srollout@mozilla.org version 1.01469624000582addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi1469624000585addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/extensions/langpack-pt-PT@firefox.mozilla.org.xpi1469624000588addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi1469624000590addons.xpiDEBUGRegistering manifest for /usr/lib/firefox/browser/extensions/langpack-pt-BR@firefox.mozilla.org.xpi1469624000597addons.managerDEBUGRegistering shutdown blocker for XPIProvider1469624000598addons.managerDEBUGProvider finished startup: XPIProvider1469624000598addons.managerDEBUGStarting provider: LightweightThemeManager1469624000598addons.managerDEBUGRegistering shutdown blocker for LightweightThemeManager1469624000599addons.managerDEBUGProvider finished startup: LightweightThemeManager1469624000600addons.managerDEBUGStarting provider: GMPProvider1469624000617addons.managerDEBUGRegistering shutdown blocker for GMPProvider1469624000618addons.managerDEBUGProvider finished startup: GMPProvider1469624000618addons.managerDEBUGStarting provider: PluginProvider1469624000619addons.managerDEBUGRegistering shutdown blocker for PluginProvider1469624000620addons.managerDEBUGProvider finished startup: PluginProvider1469624000621addons.managerDEBUGCompleted startup sequence1469624001165addons.xpi-utilsDEBUGAsync JSON file read took 0 MS1469624001166addons.xpi-utilsDEBUGFinished async read of XPI database, parsing...1469624001175addons.xpi-utilsDEBUGSuccessfully read XPI database1469624001206addons.managerDEBUGStarting provider: 1469624001206addons.managerDEBUGRegistering shutdown blocker for 1469624001207addons.managerDEBUGProvider finished startup: *** Blocklist::_loadBlocklistFromFile: blocklist is disabled1469624001483addons.managerDEBUGStarting provider: PreviousExperimentProvider1469624001483addons.managerDEBUGRegistering shutdown blocker for PreviousExperimentProvider1469624001483addons.managerDEBUGProvider finished startup: PreviousExperimentProviderJavaScript warning: https://normandy.cdn.mozilla.net/static/js/bundles/selfrepair-7575f6d27445b45bcffb.js, line 9825: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.createat org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)... 24 morejava.lang.NullPointerExceptionat br.org.cesar.test.BaseTestcase.afterClass(BaseTestcase.java:37)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)at org.junit.runners.ParentRunner.run(ParentRunner.java:363)at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

 

Voltar ao topo