Есть отличная удаленная работа для php+codeception+jenkins+allure+docker спецов. 100% remote! Присоединиться к проекту

После установки новой версии FireFox 37.0.2, перестали запускаться автотесты.


(Александр Трофимович) #1

После установки новой версии FireFox 37.0.2, перестали запускаться автотесты.
Вываливается ошибка:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
xtensions.json	DEBUG	Starting write
1431521433336	addons.manager	DEBUG	shutdown
1431521433337	addons.manager	DEBUG	Calling shutdown blocker for XPIProvider
1431521433337	addons.xpi	DEBUG	shutdown
1431521433337	addons.xpi-utils	DEBUG	shutdown
1431521433337	addons.manager	DEBUG	Calling shutdown blocker for LightweightThemeManager
1431521433337	addons.manager	DEBUG	Calling shutdown blocker for GMPProvider
1431521433338	addons.manager	DEBUG	Calling shutdown blocker for PluginProvider
1431521433618	DeferredSave.extensions.json	DEBUG	Write succeeded
1431521433618	addons.xpi-utils	DEBUG	XPI Database saved, setting schema version preference to 16
1431521433618	addons.xpi	DEBUG	Notifying XPI shutdown observers
1431521433620	addons.manager	DEBUG	Async provider shutdown done
1431521434054	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1431521434055	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1431521434057	addons.xpi	DEBUG	startup
1431521434058	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\TRAFIM~1\AppData\Local\Temp\anonymous1741689144686545883webdriver-profile\extensions\fxdriver@googlecode.com
1431521434058	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\TRAFIM~1\AppData\Local\Temp\anonymous1741689144686545883webdriver-profile\extensions\webdriver-staging
1431521434059	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1431521434059	addons.xpi	DEBUG	Skipping unavailable install location app-system-share
1431521434059	addons.xpi	DEBUG	Skipping unavailable install location app-system-local
1431521434059	addons.xpi	DEBUG	checkForChanges
1431521434059	addons.xpi	DEBUG	Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\TRAFIM~1\\AppData\\Local\\Temp\\anonymous1741689144686545883webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.44.0","st":1431521430764,"mt":1431521430743}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"37.0.2","st":1431516987939,"mt":1431516987778}}}
1431521434060	addons.xpi	DEBUG	getModTime: Recursive scan of fxdriver@googlecode.com
1431521434064	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1431521434065	addons.xpi	DEBUG	getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\TRAFIM~1\\AppData\\Local\\Temp\\anonymous1741689144686545883webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.44.0","st":1431521430764,"mt":1431521430743}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"37.0.2","st":1431516987939,"mt":1431516987778}}}
1431521434066	addons.xpi	DEBUG	No changes found
1431521434068	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1431521434068	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1431521434070	addons.manager	DEBUG	Registering shutdown blocker for GMPProvider
1431521434070	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
JavaScript error: file:///C:/Users/TRAFIM~1/AppData/Local/Temp/anonymous1741689144686545883webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js, line 11487: TypeError: this.server_ is undefined
JavaScript error: chrome://fxdriver/content/server.js, line 38: NS_ERROR_XPC_CI_RETURNED_FAILURE: Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1431521435130	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>

	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:193)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:95)
	at Web_Retail_final.Sozdanie_dogovorov_kart_schet_admin6.setUp(Sozdanie_dogovorov_kart_schet_admin6.java:35)
	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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	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.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
	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:675)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

(Александр Таранков) #2

Что не удивительно, ибо WebDriver обычно обновляется позже браузера.
Поэтому первым делом надо отключать автообновление браузеров, используемых для автотестов


(Александр Трофимович) #3

Ок, обновлю до прежней версии


(barancev) #4

Обновите Selenium.

А также посмотрите п.2 здесь и может быть действительно лучше не обновляйте пока браузер :smile: http://selenium2.ru/news/128-selenium-245.html