Allure reporting: html file is not generated- Testng, pom.xml

1,840 views
Skip to first unread message

garvitag...@gmail.com

unread,
Sep 21, 2017, 6:06:10 AM9/21/17
to testng-users
Hi,

My site folder is blank after test run, xml file is generated in allure-results folder. Earlier, html file was being generated as allure-maven-plugin.html under site folder. But now this folder is blank. Below is my pom.xml, can anyone please help me knowing what i need to correct in this to get html file:

<?xml version="1.0" encoding="UTF-8"?>
         <modelVersion>4.0.0</modelVersion>

           <groupId>com.testtest</groupId>
           <artifactId>itests</artifactId>
           <version>0.1-SNAPSHOT</version>
           <properties>
            <allure.version>2.6</allure.version>
           <aspectj.version>1.8.10</aspectj.version>
    </properties>
     <dependencies>
        
       <dependency>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-testng-adaptor</artifactId>
            <version>1.5.3</version>
            <exclusions>
                <exclusion>
                    <groupId>junit</groupId>
                    <artifactId>junit</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>6.11</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>3.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-server</artifactId>
            <version>3.4.0</version>
        </dependency>
        <dependency>
           <groupId>org.apache.poi</groupId>
           <artifactId>poi</artifactId>
           <version>3.16</version>
     </dependency> 
     <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-ooxml</artifactId>
        <version>3.16</version>
    </dependency>
    </dependencies>
     
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
    <groupId>io.qameta.allure</groupId>
    <artifactId>allure-maven</artifactId>
    <version>2.8</version>
</plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.20</version>
                <configuration>
                <testFailureIgnore>true</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>
                        <suiteXmlFiles>
                        <suiteXmlFile>testng.xml</suiteXmlFile>
                    </suiteXmlFiles>
                </configuration>
                <dependencies>
                <dependency>
                    <groupId>org.aspectj</groupId>
                    <artifactId>aspectjweaver</artifactId>
                    <version>1.8.10</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.6</version>
               <configuration>
                    <outputDirectory>${basedir}/target/allure-reports/</outputDirectory>
                    <allureResultsDirectory>${basedir}/target/allure-results</allureResultsDirectory>
            </configuration>
        </plugin>
           </plugins>
                   
</reporting>
</project>


Thanks !!

tota...@gmail.com

unread,
Mar 1, 2018, 6:58:34 AM3/1/18
to testng-users
Hi,

Please find the Step-by-Step implementation of Maven,Testng,Allure Reporting with steps.

Thanks,
Reply all
Reply to author
Forward
0 new messages