Hello,

When I run my Selenium Webdriver Simple Login script on jenkins through Git 
then it always skip my test cases and give me the below error.

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to 
host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
   [testng] No protocol specified
   [testng] No protocol specified
   [testng] Error: cannot open display: :0
   [testng] No protocol specified
   [testng] No protocol specified
   [testng] Error: cannot open display: :0
   [testng] 
   [testng]     at 
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
   [testng]     at 
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
   [testng]     at 
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
   [testng]     at 
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:193)
   [testng]     at 
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
   [testng]     at 
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
   [testng]     at 
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:95)
   [testng]     at Test.TestA.setUpTest(Unknown Source)
   [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
   [testng]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   [testng]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   [testng]     at java.lang.reflect.Method.invoke(Method.java:606)
   [testng]     at 
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
   [testng]     at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
   [testng]     at 
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
   [testng]     at 
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
   [testng]     at org.testng.TestRunner.beforeRun(TestRunner.java:641)
   [testng]     at org.testng.TestRunner.run(TestRunner.java:609)
   [testng]     at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
   [testng]     at 
org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
   [testng]     at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
   [testng]     at org.testng.SuiteRunner.run(SuiteRunner.java:240)
   [testng]     at 
org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
   [testng]     at 
org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
   [testng]     at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
   [testng]     at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
   [testng]     at org.testng.TestNG.run(TestNG.java:1057)
   [testng]     at org.testng.TestNG.privateMain(TestNG.java:1364)
   [testng]     at org.testng.TestNG.main(TestNG.java:1333)
   [testng] 
   [testng] ===============================================
   [testng] Sample Test Suite
   [testng] Total tests run: 1, Failures: 0, Skips: 1
   [testng] Configuration Failures: 1, Skips: 1
   [testng] ===============================================
   [testng] 
   [testng] The tests failed.



I have Searched a lot on Internet and some one told that upgrade the 
version of firefox and upgrade your jar file. But after upgrade my firefox 
version(42..0) and also the jar file (selenium-2.48.jar). but still get the 
same issue.

After that I Connect through the putty and run the command 'firefox&' but 
it gives error like 'can not open display' and also tried with x11 forward 
but it doesn't work.

Any Help would be appreciated.
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c675d5d2-38bd-4d03-ae40-3d0534050e3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to