Всем привет!
Помогите, пожалуйста, подключить allure к maven проекту (java+webdriver+testng) !
работаюший pom.xml до попытки подключения allure : старый pom.xml — Yandex Disk
Текущая версия pom.xml : новый pom.xml — Yandex Disk
вывод ошибки в терминале : “mvn -X test” вывод — Yandex Disk
Вот как подключал allure к проекту я:
<reporting> <excludeDefaults>true</excludeDefaults> <plugins> <plugin> <groupId>ru.yandex.qatools.allure</groupId> <artifactId>allure-maven-plugin</artifactId> <version>2.0</version> </plugin> </plugins> </reporting>
Часть моего файла, для проекта делал отчеты Allure
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>...</groupId>
<artifactId>...</artifactId>
<version>v1.0</version>
<properties>
<!-- Configuration -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<suiteFile>${project.basedir}/testng.xml</suiteFile>
<!-- Dependencies Versions -->
<compiler.version>1.8</compiler.version>
<allure.version>1.4.23</allure.version>
<htmlelements.java.version>1.13</htmlelements.java.version>
<aspectj.version>1.8.7</aspectj.version>
<!-- Plugin Versions -->
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<maven-surefire-plugin.version>2.19</maven-surefire-plugin.version>
<allure-maven-plugin.version>2.2</allure-maven-plugin.version>
<versions-maven-plugin.version>2.2</versions-maven-plugin.version>
<!-- Directory Properties -->
<resource-test.directory>${project.basedir}/src/test/resources</resource-test.directory>
<allure.results.directory>${project.build.directory}/allure-results</allure.results.directory>
<allure.report.directory>${project.build.directory}/site/allure-report</allure.report.directory>
</properties>
<dependencies>
<!-- Allure -->
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-testng-adaptor</artifactId>
<version>${allure.version}</version>
</dependency>
<dependency>
<groupId>ru.yandex.qatools.htmlelements</groupId>
<artifactId>htmlelements-java</artifactId>
<version>${htmlelements.java.version}</version>
</dependency>
</dependencies>
<build>
<finalName>${project.name}-${project.version}</finalName>
<resources>
<resource>
<directory>${resource-test.directory}</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${compiler.version}</source>
<target>${compiler.version}</target>
</configuration>
</plugin>
<!-- Allure -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<!--<inherited>true</inherited>-->
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
<suiteXmlFiles>
<suiteXmlFile>${suiteFile}</suiteXmlFile>
</suiteXmlFiles>
<reportsDirectory>target/TestReport</reportsDirectory>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<!-- Allure Reporting -->
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>${allure-maven-plugin.version}</version>
<!--<configuration>-->
<!--<resultsPattern>${allure.results.directory}</resultsPattern>-->
<!--</configuration>-->
</plugin>
</plugins>
</reporting>
</project>
может и мой способ подключения чем-то поможет
4.0.0
test
test
1.0-SNAPSHOT
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<properties>
<compiler.version>1.7</compiler.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<allure.version>1.4.19</allure.version>
<aspectj.version>1.8.3</aspectj.version>
</properties>
<name>Allure TestNG Example</name>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/allure-framework/allure-testng-examples</url>
<connection>scm:git@github.com:allure-framework/allure-testng-example.git</connection>
<developerConnection>scm:git:git@github.com:allure-framework/allure-testng-example.git</developerConnection>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/allure-framework/allure-testng-example/issues</url>
</issueManagement>
<developers>
<developer>
<id>charlie</id>
<name>Dmitry Baev</name>
<email>charlie@yandex-team.ru</email>
<organization>Yandex</organization>
</developer>
</developers>
<dependencies>
<!--Allure TestNG-->
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-testng-adaptor</artifactId>
<version>${allure.version}</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--Web Driver-->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.48.2</version>
</dependency>
<dependency>
<groupId>ru.stqa.selenium</groupId>
<artifactId>webdriver-factory</artifactId>
<version>1.1.45</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>${compiler.version}</source>
<target>${compiler.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
</plugins>
</reporting>
Всем спасибо! Попытался подключить allure на основе ваших примеров. Сейчас отчёты генерируются, но тесты не запускаются. А именно запускается firefox, но тесты не прогоняются - нет даже перехода на url. Посмотрите, пожалуйста, в чём может быть проблема.
4.0.0
ag
ag-web
1.0-SNAPSHOT
jar
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<env>dev</env>
<user.username>12345</user.username>
<user.password>12345</user.password>
<site.url>http://test.ru/</site.url>
<browser.name>firefox</browser.name>
<browser.version></browser.version>
<browser.platform>LINUX</browser.platform>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<suiteFile>${project.basedir}/src/test/resources/testng.xml</suiteFile>
<!-- Dependencies Versions -->
<compiler.version>1.7</compiler.version>
<allure.version>1.4.23</allure.version>
<htmlelements.java.version>1.13</htmlelements.java.version>
<aspectj.version>1.8.9</aspectj.version>
<!-- Plugin Versions -->
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
<allure-maven-plugin.version>2.2</allure-maven-plugin.version>
<versions-maven-plugin.version>2.2</versions-maven-plugin.version>
<!-- Directory Properties -->
<allure.results.directory>${project.build.directory}/allure-results</allure.results.directory>
<allure.report.directory>${project.build.directory}/site/allure-report</allure.report.directory>
</properties>
<dependencies>
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-testng-adaptor</artifactId>
<version>${allure.version}</version>
</dependency>
<dependency>
<groupId>ru.yandex.qatools.htmlelements</groupId>
<artifactId>htmlelements-java</artifactId>
<version>${htmlelements.java.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>ru.stqa.selenium</groupId>
<artifactId>webdriver-factory</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${compiler.version}</source>
<target>${compiler.version}</target>
</configuration>
</plugin>
<!-- Allure -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<!--<inherited>true</inherited>-->
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
<suiteXmlFiles>
<suiteXmlFile>${suiteFile}</suiteXmlFile>
</suiteXmlFiles>
<reportsDirectory>target/TestReport</reportsDirectory>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>${allure-maven-plugin.version}</version>
</plugin>
</plugins>
</reporting>
</project>
Вывод ошибки:
T E S T S
Running TestSuite
…
… TestNG 6.8.2beta_20130330_0839 by Cédric Beust (cedric@beust.com)
…
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
:1442597111000}}}
1465893736362 addons.xpi DEBUG getModTime: Recursive scan of langpack-en-ZA@firefox.mozilla.org
1465893736362 addons.xpi DEBUG getModTime: Recursive scan of langpack-en-GB@firefox.mozilla.org
1465893736363 addons.xpi DEBUG getModTime: Recursive scan of langpack-ru@firefox.mozilla.org
1465893736363 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1465893736363 addons.xpi DEBUG getInstallState changed: false, state: {“app-profile”:{“fxdriver@googlecode.com”:{“d”:“/tmp/anonymous7330903913639490222webdriver-profile/extensions/fxdriver@googlecode.com”,“e”:false,“v”:“2.42.0”,“st”:1465893729000,“mt”:1465893729000}},“app-global”:{“langpack-en-ZA@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197253000},“langpack-en-GB@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197253000},“langpack-ru@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-ru@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197324000},“{972ce4c6-7e08-4474-a285-3208198ce6fd}”:{“d”:“/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}”,“e”:true,“v”:“42.0”,“st”:1449557426000,“mt”:1446196529000}},“app-system-share”:{“ubufox@ubuntu.com”:{“d”:“/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox@ubuntu.com.xpi”,“e”:false,“v”:“3.2”,“st”:1442597111000}}}
1465893736365 addons.xpi DEBUG No changes found
1465893736369 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi
1465893736369 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi
1465893736370 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-ru@firefox.mozilla.org.xpi
1465893736371 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1465893736372 addons.manager DEBUG Provider finished startup: XPIProvider
1465893736372 addons.manager DEBUG Starting provider: LightweightThemeManager
1465893736372 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1465893736372 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1465893736372 addons.manager DEBUG Starting provider: GMPProvider
1465893736375 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1465893736375 addons.manager DEBUG Provider finished startup: GMPProvider
1465893736375 addons.manager DEBUG Starting provider: PluginProvider
1465893736376 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1465893736376 addons.manager DEBUG Provider finished startup: PluginProvider
1465893736376 addons.manager DEBUG Completed startup sequence
1465893736401 addons.xpi-utils DEBUG Starting async load of XPI database /tmp/anonymous7330903913639490222webdriver-profile/extensions.json
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1465893736488 addons.manager DEBUG Starting provider:
1465893736488 addons.manager DEBUG Registering shutdown blocker for
1465893736488 addons.manager DEBUG Provider finished startup:
1465893736551 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1465893736551 addons.xpi-utils DEBUG Finished async read of XPI database, parsing…
1465893736552 addons.xpi-utils DEBUG Successfully read XPI database
1465893736592 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1465893736592 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1465893736593 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
JavaScript warning: SHIELD Control Panel, line 9825: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
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:115)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:103)
at ru.stqa.selenium.factory.WebDriverFactoryInternal.createLocalDriver(WebDriverFactoryInternal.java:74)
at ru.stqa.selenium.factory.WebDriverFactoryInternal.newDriver(WebDriverFactoryInternal.java:57)
at ru.stqa.selenium.factory.SingletonStorage.createNewDriver(SingletonStorage.java:73)
at ru.stqa.selenium.factory.SingletonStorage.getDriver(SingletonStorage.java:31)
at ru.stqa.selenium.factory.WebDriverFactoryInternal.getDriver(WebDriverFactoryInternal.java:49)
at ru.stqa.selenium.factory.WebDriverFactory.getDriver(WebDriverFactory.java:39)
at ag.TestBase.init(TestBase.java:94)
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:84)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
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)
Tests run: 8, Failures: 4, Errors: 0, Skipped: 4, Time elapsed: 53.677 sec <<< FAILURE! - in TestSuite
init(ag.Authorization) Time elapsed: 47.046 sec <<< FAILURE!
org.openqa.selenium.WebDriverException:
Unable to bind to locking port 7054 within 45000 ms
Build info: version: ‘2.42.0’, revision: ‘5e824302019c86eae9c8c3ca9155e7307b410cf8’, time: ‘2014-05-24 09:48:41’
System info: host: ‘jaroslav-All-Series’, ip: ‘127.0.0.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘3.16.0-55-generic’, java.version: ‘1.7.0_91’
Driver info: driver.version: FirefoxDriver
goToMainPage(ag.Authorization) Time elapsed: 0.003 sec <<< FAILURE!
java.lang.NullPointerException
at ag.Authorization.goToMainPage(Authorization.java:248)
init(ag.NotAuthorization) Time elapsed: 6.505 sec <<< FAILURE!
org.openqa.selenium.WebDriverException:
Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
:1442597111000}}}
1465893736362 addons.xpi DEBUG getModTime: Recursive scan of langpack-en-ZA@firefox.mozilla.org
1465893736362 addons.xpi DEBUG getModTime: Recursive scan of langpack-en-GB@firefox.mozilla.org
1465893736363 addons.xpi DEBUG getModTime: Recursive scan of langpack-ru@firefox.mozilla.org
1465893736363 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1465893736363 addons.xpi DEBUG getInstallState changed: false, state: {“app-profile”:{“fxdriver@googlecode.com”:{“d”:“/tmp/anonymous7330903913639490222webdriver-profile/extensions/fxdriver@googlecode.com”,“e”:false,“v”:“2.42.0”,“st”:1465893729000,“mt”:1465893729000}},“app-global”:{“langpack-en-ZA@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197253000},“langpack-en-GB@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197253000},“langpack-ru@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-ru@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197324000},“{972ce4c6-7e08-4474-a285-3208198ce6fd}”:{“d”:“/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}”,“e”:true,“v”:“42.0”,“st”:1449557426000,“mt”:1446196529000}},“app-system-share”:{“ubufox@ubuntu.com”:{“d”:“/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox@ubuntu.com.xpi”,“e”:false,“v”:“3.2”,“st”:1442597111000}}}
1465893736365 addons.xpi DEBUG No changes found
1465893736369 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi
1465893736369 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi
1465893736370 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-ru@firefox.mozilla.org.xpi
1465893736371 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1465893736372 addons.manager DEBUG Provider finished startup: XPIProvider
1465893736372 addons.manager DEBUG Starting provider: LightweightThemeManager
1465893736372 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1465893736372 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1465893736372 addons.manager DEBUG Starting provider: GMPProvider
1465893736375 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1465893736375 addons.manager DEBUG Provider finished startup: GMPProvider
1465893736375 addons.manager DEBUG Starting provider: PluginProvider
1465893736376 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1465893736376 addons.manager DEBUG Provider finished startup: PluginProvider
1465893736376 addons.manager DEBUG Completed startup sequence
1465893736401 addons.xpi-utils DEBUG Starting async load of XPI database /tmp/anonymous7330903913639490222webdriver-profile/extensions.json
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1465893736488 addons.manager DEBUG Starting provider:
1465893736488 addons.manager DEBUG Registering shutdown blocker for
1465893736488 addons.manager DEBUG Provider finished startup:
1465893736551 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1465893736551 addons.xpi-utils DEBUG Finished async read of XPI database, parsing…
1465893736552 addons.xpi-utils DEBUG Successfully read XPI database
1465893736592 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1465893736592 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1465893736593 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
JavaScript warning: SHIELD Control Panel, line 9825: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
Build info: version: ‘2.42.0’, revision: ‘5e824302019c86eae9c8c3ca9155e7307b410cf8’, time: ‘2014-05-24 09:48:41’
System info: host: ‘jaroslav-All-Series’, ip: ‘127.0.0.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘3.16.0-55-generic’, java.version: ‘1.7.0_91’
Driver info: driver.version: FirefoxDriver
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:
:1442597111000}}}
1465893736362 addons.xpi DEBUG getModTime: Recursive scan of langpack-en-ZA@firefox.mozilla.org
1465893736362 addons.xpi DEBUG getModTime: Recursive scan of langpack-en-GB@firefox.mozilla.org
1465893736363 addons.xpi DEBUG getModTime: Recursive scan of langpack-ru@firefox.mozilla.org
1465893736363 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1465893736363 addons.xpi DEBUG getInstallState changed: false, state: {“app-profile”:{“fxdriver@googlecode.com”:{“d”:“/tmp/anonymous7330903913639490222webdriver-profile/extensions/fxdriver@googlecode.com”,“e”:false,“v”:“2.42.0”,“st”:1465893729000,“mt”:1465893729000}},“app-global”:{“langpack-en-ZA@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197253000},“langpack-en-GB@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197253000},“langpack-ru@firefox.mozilla.org”:{“d”:“/usr/lib/firefox/browser/extensions/langpack-ru@firefox.mozilla.org.xpi”,“e”:true,“v”:“42.0”,“st”:1446197324000},“{972ce4c6-7e08-4474-a285-3208198ce6fd}”:{“d”:“/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}”,“e”:true,“v”:“42.0”,“st”:1449557426000,“mt”:1446196529000}},“app-system-share”:{“ubufox@ubuntu.com”:{“d”:“/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox@ubuntu.com.xpi”,“e”:false,“v”:“3.2”,“st”:1442597111000}}}
1465893736365 addons.xpi DEBUG No changes found
1465893736369 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi
1465893736369 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi
1465893736370 addons.xpi DEBUG Registering manifest for /usr/lib/firefox/browser/extensions/langpack-ru@firefox.mozilla.org.xpi
1465893736371 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1465893736372 addons.manager DEBUG Provider finished startup: XPIProvider
1465893736372 addons.manager DEBUG Starting provider: LightweightThemeManager
1465893736372 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1465893736372 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1465893736372 addons.manager DEBUG Starting provider: GMPProvider
1465893736375 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1465893736375 addons.manager DEBUG Provider finished startup: GMPProvider
1465893736375 addons.manager DEBUG Starting provider: PluginProvider
1465893736376 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1465893736376 addons.manager DEBUG Provider finished startup: PluginProvider
1465893736376 addons.manager DEBUG Completed startup sequence
1465893736401 addons.xpi-utils DEBUG Starting async load of XPI database /tmp/anonymous7330903913639490222webdriver-profile/extensions.json
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1465893736488 addons.manager DEBUG Starting provider:
1465893736488 addons.manager DEBUG Registering shutdown blocker for
1465893736488 addons.manager DEBUG Provider finished startup:
1465893736551 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1465893736551 addons.xpi-utils DEBUG Finished async read of XPI database, parsing…
1465893736552 addons.xpi-utils DEBUG Successfully read XPI database
1465893736592 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1465893736592 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1465893736593 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
JavaScript warning: SHIELD Control Panel, line 9825: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
goToMainPage(ag.NotAuthorization) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.NullPointerException
at ag.NotAuthorization.goToMainPage(NotAuthorization.java:213)
Results :
Failed tests:
Authorization.goToMainPage:248 NullPointer
Authorization>TestBase.init:94 » WebDriver Unable to bind to locking port 7054…
NotAuthorization.goToMainPage:213 NullPointer
NotAuthorization>TestBase.init:94 » WebDriver Failed to connect to binary Fire…
Tests run: 8, Failures: 4, Errors: 0, Skipped: 4
[ERROR] There are test failures.
Please refer to /home/jaroslav/projects/allure/ag-web/target/TestReport for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56.789 s
[INFO] Finished at: 2016-06-14T12:43:01+04:00
[INFO] Final Memory: 20M/218M
Проблема решилась, добавлением:
ru.stqa.selenium
webdriver-factory
2.0
org.seleniumhq.selenium
selenium-java
2.53.0
org.seleniumhq.selenium
selenium-server
2.53.0
Супер, тогда отмечайте сообщение, которое вам помогло, как “Ответ” для данной темы, и другим людям, которые будут нуждаться в отчетах, смогут сразу найти то что им необходимо…