When trying to run seleniumtests, I am getting following error
org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows system is Win7 64 bit. If I try to run firefox.exe from same location, it works fine.
-SK
|
Administrator
|
Which version of FF are you using?
~ seleniumtests.com
|
16.0.2 Thanks Shekhar On Dec 2, 2012, at 11:49 PM, "tarunkumar [via Manual and Automated Testing]" <[hidden email]> wrote:
-SK
|
In reply to this post by softwaretestingforum
Updating to 17 is working now. However not able to run by maven. Can you post some instructions how to run this project through maven. Also can you please post page factory project ? Thanks Shekhar On Dec 2, 2012, at 11:49 PM, "tarunkumar [via Manual and Automated Testing]" <[hidden email]> wrote:
-SK
|
Administrator
|
Strange, I use 16 but did not encounter any error.
About maven, could you post how you tried and what exception you encounter. There is no difference b/w pagefactory project and maven project I explained yesterday. The maven project only mavenizes the pagefactory project and rest is same. But if you still insist, I can upload pagefactory project also.
~ seleniumtests.com
|
no problem. If they are same project then should be good.
Here is error I am getting when trying to run through maven. <as maven test> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. After this it start downloading jar files.. and eclipse hangs. Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom (601 B at 0.5 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom
-SK
|
Administrator
|
The error message seems unrelated. I found one thread on SO - http://stackoverflow.com/questions/7951610/failed-to-load-class-org-slf4j-impl-staticloggerbinder
Could you try to execute "mvn test" from command line and see how it goes?
~ seleniumtests.com
|
Seems this is working even after error. Will try solution from OS.
Second issue : Eclipse throws error during"maven test". "....Perhaps you are running on a JRE rather than a JDK?" Referred http://stackoverflow.com/questions/2222560/build-failed-question-maven-jre-or-jdk-problem and is working Solution: (from post for quick reference) ..going to the properties of said project->java build path->libraries->select "JRE System Library", click Edit and select "Workspace default JRE" Thanks and appreciate your followup.
-SK
|
Administrator
|
So I assumed problems are solved
~ seleniumtests.com
|
hi,i am try to launch FirefoxDriver
code: import org.testng.annotations.Test; import org.openqa.selenium.firefox.FirefoxDriver; public class ExcelLinks { @Test public void setup() { FirefoxDriver driver=new FirefoxDriver(); driver.get("http://newtours.demoaut.com/"); } } output: [TestNG] Running: C:\Users\Bujji24\AppData\Local\Temp\testng-eclipse-1175729059\testng-customsuite.xml FAILED: setup org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: null Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:55:52' System info: host: 'Lenovo-PC', ip: '192.168.1.9', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_79' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:138) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120) at testing_pgs.ExcelLinks.setup(ExcelLinks.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) at org.testng.internal.Invoker.invokeMethod(Invoker.java:639) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) at org.testng.TestRunner.privateRun(TestRunner.java:773) at org.testng.TestRunner.run(TestRunner.java:623) at org.testng.SuiteRunner.runTest(SuiteRunner.java:357) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310) at org.testng.SuiteRunner.run(SuiteRunner.java:259) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185) at org.testng.TestNG.runSuitesLocally(TestNG.java:1110) at org.testng.TestNG.run(TestNG.java:1018) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175) Caused by: org.openqa.selenium.WebDriverException: Unable to create temporary file at C:\windows Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:55:52' System info: host: 'Lenovo-PC', ip: '192.168.1.9', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_79' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.io.TemporaryFilesystem.createTempDir(TemporaryFilesystem.java:98) at org.openqa.selenium.firefox.FirefoxProfile.layoutOnDisk(FirefoxProfile.java:417) at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:95) ... 31 more =============================================== Default test Tests run: 1, Failures: 1, Skips: 0 =============================================== =============================================== Default suite Total tests run: 1, Failures: 1, Skips: 0 =============================================== [TestNG] Time taken by org.testng.reporters.jq.Main@1435f58a: 79 ms [TestNG] Time taken by org.testng.reporters.XMLReporter@3d35cda0: 46 ms [TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@4a4e63f9: 47 ms [TestNG] Time taken by org.testng.reporters.EmailableReporter2@c2909a1: 16 ms [TestNG] Time taken by org.testng.reporters.JUnitReportReporter@11def881: 15 ms [TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 0 ms firefoxbrowser version:39 selenium :2.48.2 |
if the same code executing with in the main()
its works successfully ,but i am using @Test it shows an error like :Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: |
In reply to this post by softwaretestingforum
hi,i am try to launch FirefoxDriver
code: import org.testng.annotations.Test; import org.openqa.selenium.firefox.FirefoxDriver; public class ExcelLinks { @Test public void setup() { FirefoxDriver driver=new FirefoxDriver(); driver.get("http://newtours.demoaut.com/"); } } output: [TestNG] Running: C:\Users\Bujji24\AppData\Local\Temp\testng-eclipse-1175729059\testng-customsuite.xml FAILED: setup org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: null Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:55:52' System info: host: 'Lenovo-PC', ip: '192.168.1.9', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_79' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:138) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120) at testing_pgs.ExcelLinks.setup(ExcelLinks.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) at org.testng.internal.Invoker.invokeMethod(Invoker.java:639) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) at org.testng.TestRunner.privateRun(TestRunner.java:773) at org.testng.TestRunner.run(TestRunner.java:623) at org.testng.SuiteRunner.runTest(SuiteRunner.java:357) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310) at org.testng.SuiteRunner.run(SuiteRunner.java:259) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185) at org.testng.TestNG.runSuitesLocally(TestNG.java:1110) at org.testng.TestNG.run(TestNG.java:1018) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175) Caused by: org.openqa.selenium.WebDriverException: Unable to create temporary file at C:\windows Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:55:52' System info: host: 'Lenovo-PC', ip: '192.168.1.9', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_79' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.io.TemporaryFilesystem.createTempDir(TemporaryFilesystem.java:98) at org.openqa.selenium.firefox.FirefoxProfile.layoutOnDisk(FirefoxProfile.java:417) at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:95) ... 31 more =============================================== Default test Tests run: 1, Failures: 1, Skips: 0 =============================================== =============================================== Default suite Total tests run: 1, Failures: 1, Skips: 0 =============================================== [TestNG] Time taken by org.testng.reporters.jq.Main@1435f58a: 79 ms [TestNG] Time taken by org.testng.reporters.XMLReporter@3d35cda0: 46 ms [TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@4a4e63f9: 47 ms [TestNG] Time taken by org.testng.reporters.EmailableReporter2@c2909a1: 16 ms [TestNG] Time taken by org.testng.reporters.JUnitReportReporter@11def881: 15 ms [TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 0 ms firefoxbrowser version:39 selenium :2.48.2 |
In reply to this post by Shekhar
Looking for Software testing consultants with exp in selenium. Positions open in NJ Location. Anybody interested please send resume to Sandya@exelhub.com
|
Free forum by Nabble | Edit this page |