Вроде подключил все правильно, но отчеты пустые. Может кто-то юзал и встречался с такой проблемой?
Pom.xml:
<?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>heartwilltell.jawos</groupId>
<artifactId>jawos</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Simple Allure Project</name>
<properties>
<compiler.version>1.7</compiler.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<allure.version>1.4.0</allure.version>
<aspectj.version>1.8.2</aspectj.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-junit-adaptor</artifactId>
<version>${allure.version}</version>
</dependency>
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-report-data</artifactId>
<version>${allure.version}</version>
</dependency>
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.42.2</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>17.0</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${compiler.version}</source>
<target>${compiler.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.17</version>
<configuration>
<testFailureIgnore>false</testFailureIgnore>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
<properties>
<property>
<name>listener</name>
<value>ru.yandex.qatools.allure.junit.AllureRunListener</value>
</property>
</properties>
<parallel>classes</parallel>
<threadCount>2</threadCount>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.8.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.4</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>2.0</version>
<configuration>
<resultsPattern>**/allure-results</resultsPattern>
</configuration>
</plugin>
</plugins>
</reporting>
</project>
Тест:
public class StoreMainPageTest {
StoreMainPage storeMainPage;
static WebDriver driver;
@BeforeClass
public static void settings() {
driver = new FirefoxDriver();
}
@AfterClass
public static void shutdown() {
driver.quit();
}
@Test
public void enterCouponeAndClickCmm2Button() {
driver.get("http://site.com/store");
storeMainPage = new StoreMainPage(driver);
storeMainPage.clickCouponeLink();
storeMainPage.enterValueToCouponeField("coupone");
storeMainPage.clickCouponFieldApplyButton();
}
}
Пейдж обджект:
public class StoreMainPage extends PageObject {
public StoreMainPage (WebDriver driver) {
super(
@FindBy (css = "[data-store-discount-block=\"index\"] [data-store-discount-goto=\"coupon\"]")
private WebElement couponeLink;
@FindBy (css = "[data-store-discount-block=\"coupon\"] [data-store-discount-field=\"\"]")
private WebElement couponField;
@FindBy (css = "[data-store-discount-block=\"coupon\"] [type=\"submit\"]")
private WebElement couponFieldApplyButton;
@Step
public void clickCouponeLink() {
couponeLink.click();
}
@Step
public void enterValueToCouponeField(String value) {
couponField.sendKeys(value);
}
@Step
public void clickCouponFieldApplyButton() {
couponFieldApplyButton.click();
}
}
Знаю что есть у этих отчетов бока с просмотром локально, так как там все на аджаксах, гружу артефакт в веб сервер, получаю такой выхлоп: