junit - org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms -
i'm trying run junit test case exported selenium ide. im getting above exception.i'm using windows xp,firefox 20.0.1,and using selenium-server-standalone-2.28.0.jar.upon run, blank firefox window opened. when close window below exception in console
org.openqa.selenium.firefox.notconnectedexception: unable connect host 127.0.0.1 on port 7055 after 45000 ms @ org.openqa.selenium.firefox.internal.newprofileextensionconnection.start(newprofileextensionconnection.java:96) @ org.openqa.selenium.firefox.firefoxdriver.startclient(firefoxdriver.java:142) @ org.openqa.selenium.remote.remotewebdriver.(remotewebdriver.java:80) @ org.openqa.selenium.firefox.firefoxdriver.(firefoxdriver.java:121) @ org.openqa.selenium.firefox.firefoxdriver.(firefoxdriver.java:77) @ com.dci.dids.selenium.swamirolecreationtestcase.setup(swamirolecreationtestcase.java:20) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.junit.internal.runners.beforeandafterrunner.invokemethod(beforeandafterrunner.java:74) @ org.junit.internal.runners.beforeandafterrunner.runbefores(beforeandafterrunner.java:50) @ org.junit.internal.runners.beforeandafterrunner.runprotected(beforeandafterrunner.java:33) @ org.junit.internal.runners.testmethodrunner.runmethod(testmethodrunner.java:75) @ org.junit.internal.runners.testmethodrunner.run(testmethodrunner.java:45) @ org.junit.internal.runners.testclassmethodsrunner.invoketestmethod(testclassmethodsrunner.java:66) @ org.junit.internal.runners.testclassmethodsrunner.run(testclassmethodsrunner.java:35) @ org.junit.internal.runners.testclassrunner$1.rununprotected(testclassrunner.java:42) @ org.junit.internal.runners.beforeandafterrunner.runprotected(beforeandafterrunner.java:34) @ org.junit.internal.runners.testclassrunner.run(testclassrunner.java:52) @ org.eclipse.jdt.internal.junit4.runner.junit4testreference.run(junit4testreference.java:50) @ org.eclipse.jdt.internal.junit.runner.testexecution.run(testexecution.java:38) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:467) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:683) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner.java:390) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner.java:197)
this exception in junit failure trace
org.openqa.selenium.webdriverexception: failed connect binary firefoxbinary(/usr/bin/firefox) on port 7055; process output follows: * log addons.xpi: startup log addons.xpi: ignoring file entry name not valid add-on id: /tmp/anonymous5690381165464188533webdriver-profile/extensions/webdriver-staging log addons.xpi: checkforchanges * log addons.xpi: no changes found system info: os.name: 'linux', os.arch: 'i386', os.version: '3.2.0-23-generic-pae', java.version: '1.6.0_38' driver info: driver.version: firefoxdriver @ org.openqa.selenium.firefox.internal.newprofileextensionconnection.start(newprofileextensionconnection.java:108) @ org.openqa.selenium.firefox.firefoxdriver.startclient(firefoxdriver.java:142) @ org.openqa.selenium.remote.remotewebdriver.(remotewebdriver.java:80) @ org.openqa.selenium.firefox.firefoxdriver.(firefoxdriver.java:121) @ org.openqa.selenium.firefox.firefoxdriver.(firefoxdriver.java:77) @ com.dci.dids.selenium.swamirolecreationtestcase.setup(swamirolecreationtestcase.java:20) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.junit.internal.runners.beforeandafterrunner.invokemethod(beforeandafterrunner.java:74) @ org.junit.internal.runners.beforeandafterrunner.runbefores(beforeandafterrunner.java:50) @ org.junit.internal.runners.beforeandafterrunner.runprotected(beforeandafterrunner.java:33) @ org.junit.internal.runners.testmethodrunner.runmethod(testmethodrunner.java:75) @ org.junit.internal.runners.testmethodrunner.run(testmethodrunner.java:45) @ org.junit.internal.runners.testclassmethodsrunner.invoketestmethod(testclassmethodsrunner.java:66) @ org.junit.internal.runners.testclassmethodsrunner.run(testclassmethodsrunner.java:35) @ org.junit.internal.runners.testclassrunner$1.rununprotected(testclassrunner.java:42) @ org.junit.internal.runners.beforeandafterrunner.runprotected(beforeandafterrunner.java:34) @ org.junit.internal.runners.testclassrunner.run(testclassrunner.java:52) @ org.eclipse.jdt.internal.junit4.runner.junit4testreference.run(junit4testreference.java:50) @ org.eclipse.jdt.internal.junit.runner.testexecution.run(testexecution.java:38) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:467) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:683) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner.java:390) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner.java:197) caused by: org.openqa.selenium.firefox.notconnectedexception: unable connect host 127.0.0.1 on port 7055 after 45000 ms @ org.openqa.selenium.firefox.internal.newprofileextensionconnection.start(newprofileextensionconnection.java:96) ... 25 more java.lang.nullpointerexception @ com.dci.dids.selenium.swamirolecreationtestcase.teardown(swamirolecreationtestcase.java:47) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.junit.internal.runners.beforeandafterrunner.invokemethod(beforeandafterrunner.java:74) @ org.junit.internal.runners.beforeandafterrunner.runafters(beforeandafterrunner.java:65) @ org.junit.internal.runners.beforeandafterrunner.runprotected(beforeandafterrunner.java:37) @ org.junit.internal.runners.testmethodrunner.runmethod(testmethodrunner.java:75) @ org.junit.internal.runners.testmethodrunner.run(testmethodrunner.java:45) @ org.junit.internal.runners.testclassmethodsrunner.invoketestmethod(testclassmethodsrunner.java:66) @ org.junit.internal.runners.testclassmethodsrunner.run(testclassmethodsrunner.java:35) @ org.junit.internal.runners.testclassrunner$1.rununprotected(testclassrunner.java:42) @ org.junit.internal.runners.beforeandafterrunner.runprotected(beforeandafterrunner.java:34) @ org.junit.internal.runners.testclassrunner.run(testclassrunner.java:52) @ org.eclipse.jdt.internal.junit4.runner.junit4testreference.run(junit4testreference.java:50) @ org.eclipse.jdt.internal.junit.runner.testexecution.run(testexecution.java:38) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:467) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:683) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner.java:390) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner.java:197)
your version of selenium not compatible version of firefox. try installing older firefox version.
before installing , older version, go firefox , turn off automatic update option.
firefox --> options --> options --> advanced --> update --> check updates, let me choose install them
go here , install , older version. https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
you don't have uninstall firefox, install version want install. may have try few versions until right one.
Comments
Post a Comment