Forum Discussion

mdsaadlaoui's avatar
mdsaadlaoui
Occasional Contributor
6 years ago

Continous Integration Allure report,

Hi ,

 

I updated my readyAPI version to 2.7 two weeks ago, I like the feature that you can export project result to Allure, as I can see you can export project results to Allure using graphical user interface, but for costumers that uses continuous integration, I couldn't find any documentation to explain how I can export allure in the pom.xml, I'm stuck with that and I need some helpful docs,

 

Thanks,

      • mdsaadlaoui's avatar
        mdsaadlaoui
        Occasional Contributor

        Hi,

        Sorry, but this documentation is all about testrunner.bat (or.sh) and what I'm trying to do is to make my pom.xml exporting Allure report automatically to a specific destination, couldn't find any similar example.

         

        Here is my pom.xml that export reports as pdf and txt to a specific dir:

        <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>com.solife.rest.autotest</groupId>
            <artifactId>soapui-maven2-plugin</artifactId>
            <packaging>jar</packaging>
            <version>1.0-SNAPSHOT</version>
            <name>Solife REST WS automatic tests</name>
            <url>http://maven.apache.org</url>
            <pluginRepositories>
                <pluginRepository>
                    <id>SmartBearPluginRepository</id>
                    <url>http://www.soapui.org/repository/maven2/</url>
                </pluginRepository>
            </pluginRepositories>
            <properties>
                <!-- common properties-->
                <reportsPath>Reports</reportsPath>
                <readyApiPath>C:\Program Files\SmartBear\ReadyAPI-2.7.0\bin</readyApiPath>
                <projectProperties>C:/ws-automatic-test/ws-automatic-test/REST/env.properties</projectProperties>
        
                <!-- thirdparty REST API-->
                <TpProjectPath>PROJECT-REST-WS-Thirdparty-readyapi-project</TpProjectPath>
                <TpOutputPath>${reportsPath}/${project.version} -test reports/TP-Reports/</TpOutputPath>
        
        
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.smartbear</groupId>
                        <artifactId>ready-api-maven-plugin</artifactId>
                        <version>2.7.0</version>
                        <dependencies>
                        </dependencies>
                        <executions>
                            <execution>
                                <id>thirdParty</id>
                                <phase>test</phase>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <configuration>
                                    <reportFormat>PDF</reportFormat>
                                    <reportType>Project Report</reportType>
                                    <reportName>Project Report</reportName>
                                    <outputFolder>${TpOutputPath}</outputFolder>
                                    <reports>${TpOutputPath}</reports>
                                    <projectProperties>
                                        <value>ENV=${projectProperties}</value>
                                    </projectProperties>
                                    <projectFile>${TpProjectPath}</projectFile>
                                    <readyApiProperties>
                                        <property>
                                            <name>soapui.home</name>
                                            <value>${readyApiPath}</value>
                                        </property>
                                    </readyApiProperties>
                                    <testFailIgnore>true</testFailIgnore>
                                </configuration>
                            </execution>
        
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </project>