rajnishkumar7 / Allure-Report-Issue

0 stars 0 forks source link

Getting error in Allure report in our customized framework #1

Open rajnishkumar7 opened 7 years ago

rajnishkumar7 commented 7 years ago

Hi, I am trying to include Allure report in our organization's customized framework but I am getting issue like below:

[INFO] --- maven-site-plugin:3.3:site (default-site) @ mtaf-regression --- [INFO] configuring report plugin org.apache.maven.plugins:maven-jxr-plugin:2.2 [INFO] configuring report plugin ru.yandex.qatools.allure:allure-maven-plugin:2.5 [INFO] Parent project loaded from repository: com.mastercard.quality.engineering:mtaf-master-parent:pom:17.1.2.1-SNAPSHOT [INFO] Parent project loaded from repository: com.mastercard.fusion.application:parent:pom:1.0 [WARNING] Unable to find a URL to the parent project. The parent menu will NOT be added. [INFO] Relativizing decoration links with respect to project URL: http://fusion.mastercard.com/mtaf-master-parent/mtaf-regression/ [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin. [INFO] Skipped "Allure" report, file "allure-maven-plugin.html" already exists for the English version. [INFO] Skipped "Allure" report, file "allure-maven-plugin.html" already exists for the English version. [INFO] Generating "Test Source Xref" report --- maven-jxr-plugin:2.2 [INFO] Generating "Source Xref" report --- maven-jxr-plugin:2.2 [INFO] Generating "Allure" report --- allure-maven-plugin:2.5 [INFO] Generate Allure report (aggregate) with version 1.4.23 [INFO] Generate Allure report to /target/site/allure-report [WARNING] Results directory for module mtaf-regression not found. [WARNING] Allure report was skipped because there is no results directories found. [INFO] Parent project loaded from repository: com.mastercard.quality.engineering:mtaf-master-parent:pom:17.1.2.1-SNAPSHOT [INFO] Parent project loaded from repository: com.mastercard.fusion.application:parent:pom:1.0 [WARNING] Unable to find a URL to the parent project. The parent menu will NOT be added. [INFO] Relativizing decoration links with respect to project URL: http://fusion.mastercard.com/mtaf-master-parent/mtaf-regression//es [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin. [INFO] Generating "Test Source Xref" report --- maven-jxr-plugin:2.2 [INFO] Generating "Source Xref" report --- maven-jxr-plugin:2.2 [INFO] Generating "Allure" report --- allure-maven-plugin:2.5 [INFO] Generate Allure report (aggregate) with version 1.4.23 [INFO] Generate Allure report to /target/site/allure-report [WARNING] Results directory for module mtaf-regression not found. [WARNING] Allure report was skipped because there is no results directories found. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:04 min [INFO] Finished at: 2017-07-03T19:31:32+05:30 [INFO] Final Memory: 75M/568M

rajnishkumar7 commented 7 years ago

Sample PoM file is like:

4.1 **/TestStories.java true true true 300 5000 60 1800 2.5 1.4.23 1.8.5 /target/site/allure-results /target/site/allure-report
 <dependency>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-java-adaptor-api</artifactId>
             <version>1.5.4</version>
     </dependency>
     <!-- https://mvnrepository.com/artifact/ru.yandex.qatools.allure/allure-report-data -->
     <dependency>
           <groupId>ru.yandex.qatools.allure</groupId>
           <artifactId>allure-report-data</artifactId>
           <version>1.5.1</version>
     </dependency>

     <dependency>
         <groupId>ru.yandex.qatools.allure</groupId>
         <artifactId>allure-java-aspects</artifactId>
         <version>1.5.4</version>
     </dependency>
      <dependency>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-junit-adaptor</artifactId>
            <version>1.5.4</version>
      </dependency>
      <dependency>
          <groupId>org.testng</groupId>
          <artifactId>testng</artifactId>
          <version>6.10</version>
      </dependency>
      <dependency>
        <groupId>ru.yandex.qatools.allure</groupId>
        <artifactId>allure-testng-adaptor</artifactId>
        <version>${allure.version}</version>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-report-plugin-api</artifactId>
             <version>1.5.4</version>
      </dependency>

   <!-- https://mvnrepository.com/artifact/ru.yandex.qatools.allure/allure-junit-adaptor -->
    <dependency>
         <groupId>ru.yandex.qatools.allure</groupId>
         <artifactId>allure-junit-adaptor</artifactId>
         <version>1.5.3</version>
    </dependency>

 <!-- https://mvnrepository.com/artifact/ru.yandex.qatools.allure/allure-maven-plugin -->
<dependency>
         <groupId>ru.yandex.qatools.allure</groupId>
         <artifactId>allure-maven-plugin</artifactId>
         <version>2.5</version>
</dependency>   

</dependencies>
<build>
    <resources>
        <resource>
            <directory>${basedir}/src/test/resources</directory>
            <filtering>false</filtering>
        </resource>
        <resource>
            <directory>${basedir}/src/main/resources</directory>
            <filtering>false</filtering>
        </resource>
    </resources>
    <plugins>
  <plugin>
         <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-site-plugin</artifactId>
            <version>3.3</version>
        <configuration>
                    <systemProperties>
                    <property>
                        <name>allure.results.directory</name>
                        <value>${allure.results.directory}</value>
                        <name>allure.report.directory</name> 
                        <value>${allure.report.directory}</value>
                    </property>
                </systemProperties>
              <testFailureIgnore>false</testFailureIgnore>
              <argLine>-javaagent:$C:/Users/repo/.m2/repository/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>
               </configuration>
             <dependencies>
             <dependency>
                 <groupId>org.aspectj</groupId>
                 <artifactId>aspectjweaver</artifactId>
                 <!-- version>${aspectj.version}</version -->
                 <version>1.7.4</version>
              </dependency>
        </dependencies>
    </plugin>
    <!-- <plugin>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>9.2.10.v20150310</version>
            <configuration>
                <webAppSourceDirectory>${project.build.directory}/site/allure-maven-plugin</webAppSourceDirectory>
            </configuration>
        </plugin> -->
    </plugins>       
 </build>

<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
    <plugin>
        <groupId>ru.yandex.qatools.allure</groupId>
        <artifactId>allure-maven-plugin</artifactId>
        <version>2.5</version>
        <configuration>
            <resultsDirectory>${allure.results.directory}</resultsDirectory>
            <inputDirectories>${allure.results.directory}</inputDirectories>
            <reportDirectory>${allure.report.directory}</reportDirectory>
            <reportingOutputDirectory>${allure.report.directory}</reportingOutputDirectory>
            <failReportIfEmpty>false</failReportIfEmpty>
        </configuration>
    </plugin>
</plugins>