Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local tests failing #6285

Closed
AnaghHegde opened this issue Dec 31, 2016 · 11 comments
Closed

Local tests failing #6285

AnaghHegde opened this issue Dec 31, 2016 · 11 comments
Labels
a-DevHelp Help request from contributors; this label is not used anymore c.Message A means of communication with the core team; this label is not used anymore

Comments

@AnaghHegde
Copy link

This is what i am getting after the local test.I dont know why its saying unable to connect to localhost because the dev server is in running state.

[=============================teammates.test.cases.ui.browsertests.MashupPageUiTest=============================]
Initializing Selenium: Using Firefox.
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
XPCOMGlueLoad error for file /opt/firefox/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
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:124)
at teammates.test.pageobjects.Browser.createWebDriver(Browser.java:87)
at teammates.test.pageobjects.Browser.<init>(Browser.java:37)
at teammates.test.pageobjects.BrowserPool.requestInstance(BrowserPool.java:94)
at teammates.test.pageobjects.BrowserPool.getBrowser(BrowserPool.java:40)
at teammates.test.cases.ui.browsertests.MashupPageUiTest.classSetup(MashupPageUiTest.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:517)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:140)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:170)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:104)
at org.testng.TestRunner.privateRun(TestRunner.java:771)
at org.testng.TestRunner.run(TestRunner.java:621)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:38)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:391)
at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

local-tests
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1

@chowyb
Copy link
Contributor

chowyb commented Dec 31, 2016

Are you using a version of Firefox between 38.0.5 and 46.0.1?

On another note, are you getting similar errors when running Travis tests?

@AnaghHegde
Copy link
Author

@chowyb yes my firefox version is 46.0 .No i am not getting the same error

@damithc
Copy link
Contributor

damithc commented Jan 1, 2017

@AnaghHegde
Copy link
Author

@damithc My firefox is working fine and localhost:8888 is also working fine/I dont know why its saying unable to connect to localhost

@damithc
Copy link
Contributor

damithc commented Jan 1, 2017

Tests need to connect to Firefox using the WebDriver. Just because the FF works for normal manual access doesn't mean tests will work.

@AnaghHegde
Copy link
Author

@damithc so then the problem is with FF only?

@damithc
Copy link
Contributor

damithc commented Jan 1, 2017

@AnaghHegde

so then the problem is with FF only?

The error specifically mentions firefox, so I suspect it is.

@AnaghHegde
Copy link
Author

@damithc ok i ll try to fix it

@wkurniawan07
Copy link
Member

From this error message section:

XPCOMGlueLoad error for file /opt/firefox/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

I suspect it is a Linux-specific error, but I'm afraid I cannot help since I'm not a Linux-based developer.

@AnaghHegde
Copy link
Author

@wkurniawan07 its ok. Now i have switched from linux to windows environment.Thanks for the help.

@wkurniawan07 wkurniawan07 added a-DevHelp Help request from contributors; this label is not used anymore c.Message A means of communication with the core team; this label is not used anymore labels Jan 2, 2017
@wkurniawan07
Copy link
Member

@AnaghHegde noted on that, so closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-DevHelp Help request from contributors; this label is not used anymore c.Message A means of communication with the core team; this label is not used anymore
Projects
None yet
Development

No branches or pull requests

4 participants