Перейти к содержимому

Логи как инструмент тестировщика
онлайн, начало 19 августа
Школа тест-менеджеров v. 2.0
онлайн, начало 21 августа
Практикум по тест-дизайну 2.0
онлайн, начало 16 августа
Selenium IDE 3: стартовый уровень
онлайн, начало 16 августа
Фотография

Eclipse отказываеться выполнять автотест

selenium firefox failed exception

  • Авторизуйтесь для ответа в теме
Сообщений в теме: 3

#1 akamanax

akamanax

    Новый участник

  • Members
  • Pip
  • 7 сообщений

Отправлено 28 Март 2015 - 23:32

Здравствуйте , Eclipse отказываеться выполнять автотест .

Код автотеста:

package selenium_eclipse_maven;

import org.junit.Assert;

import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class FirstTest {

	@Test
	public void startWebDriver() {

		WebDriver driver = new FirefoxDriver();
		driver.navigate().to("http://python4u.blogspot.com");
		Assert.assertTrue("title should be \"Python for you\"", driver
				.getTitle().equalsIgnoreCase("Python for you"));
		driver.close();
		driver.quit();

	}

}

Код ошибки :

org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
ider"]
1427584430930	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1427584430934	addons.xpi	DEBUG	startup
1427584430935	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\cz\AppData\Local\Temp\anonymous8122807057282592241webdriver-profile\extensions\fxdriver@googlecode.com
1427584430935	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\cz\AppData\Local\Temp\anonymous8122807057282592241webdriver-profile\extensions\webdriver-staging
1427584430936	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1427584430936	addons.xpi	DEBUG	Skipping unavailable install location app-system-share
1427584430936	addons.xpi	DEBUG	Skipping unavailable install location app-system-local
1427584430937	addons.xpi	INFO	Mapping fiddlerhook@fiddler2.com to C:\Program Files (x86)\Fiddler2\FiddlerHook
1427584430937	addons.xpi	WARN	Ignoring missing add-on in C:\Users\cz\AppData\Roaming\Mozilla\Firefox\Profiles\6hcqdpwx.default\extensions\searchengine@gmail.com
1427584430937	addons.xpi	WARN	Ignoring missing add-on in C:\Users\cz\AppData\Roaming\Mozilla\Firefox\Profiles\6hcqdpwx.default\extensions\faststartff@gmail.com
1427584430937	addons.xpi	WARN	Ignoring missing add-on in C:\Users\cz\AppData\Roaming\Mozilla\Firefox\Profiles\6hcqdpwx.default\extensions\fftoolbar2014@etech.com
1427584430937	addons.xpi	DEBUG	checkForChanges
1427584430938	addons.xpi	DEBUG	Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\cz\\AppData\\Local\\Temp\\anonymous8122807057282592241webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.43.1","st":1427584429370,"mt":1427584429327}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.1","st":1425936906904,"mt":1425936906904}},"winreg-app-global":{"fiddlerhook@fiddler2.com":{"d":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","e":false,"v":"2.4.9.7","st":1418592037047,"mt":1416625068000}}}
1427584430939	addons.xpi	DEBUG	getModTime: Recursive scan of fxdriver@googlecode.com
1427584430946	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1427584430947	addons.xpi	DEBUG	getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\cz\\AppData\\Local\\Temp\\anonymous8122807057282592241webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.43.1","st":1427584429370,"mt":1427584429327}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.1","st":1425936906904,"mt":1425936906904}},"winreg-app-global":{"fiddlerhook@fiddler2.com":{"d":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","e":false,"v":"2.4.9.7","st":1418592037047,"mt":1416625068000}}}
1427584430949	addons.xpi	DEBUG	No changes found
1427584430952	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1427584430953	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1427584430954	addons.manager	DEBUG	Registering shutdown blocker for OpenH264Provider
1427584430954	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
JavaScript error: file:///C:/Users/cz/AppData/Local/Temp/anonymous8122807057282592241webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js, line 11464: 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
1427584432362	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>

Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:33'
System info: host: 'cz-PC', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_25'
Driver info: driver.version: FirefoxDriver
	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
	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 selenium_eclipse_maven.FirstTest.startWebDriver(FirstTest.java:16)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	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.InvokeMethod.evaluate(InvokeMethod.java:17)
	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)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
ider"]
1427584430930	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1427584430934	addons.xpi	DEBUG	startup
1427584430935	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\cz\AppData\Local\Temp\anonymous8122807057282592241webdriver-profile\extensions\fxdriver@googlecode.com
1427584430935	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\cz\AppData\Local\Temp\anonymous8122807057282592241webdriver-profile\extensions\webdriver-staging
1427584430936	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1427584430936	addons.xpi	DEBUG	Skipping unavailable install location app-system-share
1427584430936	addons.xpi	DEBUG	Skipping unavailable install location app-system-local
1427584430937	addons.xpi	INFO	Mapping fiddlerhook@fiddler2.com to C:\Program Files (x86)\Fiddler2\FiddlerHook
1427584430937	addons.xpi	WARN	Ignoring missing add-on in C:\Users\cz\AppData\Roaming\Mozilla\Firefox\Profiles\6hcqdpwx.default\extensions\searchengine@gmail.com
1427584430937	addons.xpi	WARN	Ignoring missing add-on in C:\Users\cz\AppData\Roaming\Mozilla\Firefox\Profiles\6hcqdpwx.default\extensions\faststartff@gmail.com
1427584430937	addons.xpi	WARN	Ignoring missing add-on in C:\Users\cz\AppData\Roaming\Mozilla\Firefox\Profiles\6hcqdpwx.default\extensions\fftoolbar2014@etech.com
1427584430937	addons.xpi	DEBUG	checkForChanges
1427584430938	addons.xpi	DEBUG	Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\cz\\AppData\\Local\\Temp\\anonymous8122807057282592241webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.43.1","st":1427584429370,"mt":1427584429327}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.1","st":1425936906904,"mt":1425936906904}},"winreg-app-global":{"fiddlerhook@fiddler2.com":{"d":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","e":false,"v":"2.4.9.7","st":1418592037047,"mt":1416625068000}}}
1427584430939	addons.xpi	DEBUG	getModTime: Recursive scan of fxdriver@googlecode.com
1427584430946	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1427584430947	addons.xpi	DEBUG	getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\cz\\AppData\\Local\\Temp\\anonymous8122807057282592241webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.43.1","st":1427584429370,"mt":1427584429327}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.1","st":1425936906904,"mt":1425936906904}},"winreg-app-global":{"fiddlerhook@fiddler2.com":{"d":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","e":false,"v":"2.4.9.7","st":1418592037047,"mt":1416625068000}}}
1427584430949	addons.xpi	DEBUG	No changes found
1427584430952	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1427584430953	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1427584430954	addons.manager	DEBUG	Registering shutdown blocker for OpenH264Provider
1427584430954	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
JavaScript error: file:///C:/Users/cz/AppData/Local/Temp/anonymous8122807057282592241webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js, line 11464: 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
1427584432362	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>

	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
	... 30 more

 


  • 0

#2 checo

checo

    Опытный участник

  • Members
  • PipPipPipPip
  • 369 сообщений
  • Город:Н.Новгород

Отправлено 29 Март 2015 - 06:43

Браузер у Вас почти последней версии, а селениум старый. Для начала можно попробовать обновить.


  • 1

#3 akamanax

akamanax

    Новый участник

  • Members
  • Pip
  • 7 сообщений

Отправлено 29 Март 2015 - 10:13

Браузер у Вас почти последней версии, а селениум старый. Для начала можно попробовать обновить.

Большое спасибо за ваш ответ .


  • 0

#4 ViKKerS

ViKKerS

    Новый участник

  • Members
  • Pip
  • 10 сообщений
  • ФИО:Viktor Sorokolet


Отправлено 16 Апрель 2015 - 11:39

еще как вариант - антивирусные пакеты могут блочить


  • 0


Selenium 2.0: стартовый уровень
онлайн
Программирование на Java для тестировщиков
онлайн
Автоматизация функционального тестирования
онлайн
Selenium WebDriver: полное руководство
онлайн




Темы с аналогичным тегами selenium, firefox, failed, exception

Количество пользователей, читающих эту тему: 0

0 пользователей, 0 гостей, 0 анонимных

Яндекс.Метрика
Реклама на портале