Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven Soapui PRO不显示诱惑中的报告_Maven_Reporting_Soapui_Allure - Fatal编程技术网

Maven Soapui PRO不显示诱惑中的报告

Maven Soapui PRO不显示诱惑中的报告,maven,reporting,soapui,allure,Maven,Reporting,Soapui,Allure,我正在尝试生成具有诱惑力的Soapui PRO执行报告。我下载了诱惑maven插件2.2。我更新了POM文件,如下所述。在命令提示符下,我运行命令c:\maven\bin\mvn-o test。测试运行良好,构建成功。但是报告是html格式的。你能检查一下让我知道吗 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sche

我正在尝试生成具有诱惑力的Soapui PRO执行报告。我下载了诱惑maven插件2.2。我更新了POM文件,如下所述。在命令提示符下,我运行命令c:\maven\bin\mvn-o test。测试运行良好,构建成功。但是报告是html格式的。你能检查一下让我知道吗

<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.smartbear.soapuiMavenTutorial</groupId>
    <artifactId>SoapUI-Maven-Tutorial</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>SoapUI-Maven-Tutorial</name>
    <url>http://maven.apache.org</url>
    <parent>
        <groupId>ru.yandex.qatools.allure</groupId>
        <artifactId>allure-examples-parent</artifactId>
        <version>1.0</version>
    </parent>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <aspectj.version>1.8.6</aspectj.version>
        <allure.version>1.4.14</allure.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-maven-plugin</artifactId>
            <version>2.3-SNAPSHOT</version>
        </dependency>
        <!--added jdbc below in build element-->
    </dependencies>
    <pluginRepositories>
        <pluginRepository>
            <id>SmartBearPluginRepository</id>
            <url>http://www.soapui.org/repository/maven2/</url>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <plugins>
            <plugin>
                <dependencies>
                    <dependency>
                        <groupId>com.oracle</groupId>
                        <artifactId>ojdbc14</artifactId>
                        <version>10.2.0</version>
                        <scope>runtime</scope>
                        <!--systemPath>C:\maven\ojdbc6.jar</systemPath-->
                    </dependency>
                </dependencies>
                <groupId>com.smartbear</groupId>
                <artifactId>ready-api-maven-plugin</artifactId>
                <version>1.3.0</version>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <projectFile>C:\Gee-SoapUI-Projects-Backup\25Aug2015-POSBkup\May04-2015-Point of Sale.xml</projectFile>
                            <outputFolder>C:\25-Aug-1suiteResults</outputFolder>
                            <reportFormat>xUNIT</reportFormat>
                            <reportName>TestCase Report</reportName>
                            <!--reportName>TestSuite Report</reportName-->
                            <testSuite>ErrorCodes</testSuite>
                            <junitReport>false</junitReport>
                            <printReport>true</printReport>
                            <exportAll>true</exportAll>
                            <soapuiProperties>
                                <property>
                                    <name>soapui.home</name>
                                    <value>C:\Users\pulipge\ReadyAPI-1.3.0\bin</value>
                                </property>
                            </soapuiProperties>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <reporting>
        <excludeDefaults>true</excludeDefaults>
        <plugins>
            <plugin>
                <groupId>ru.yandex.qatools.allure</groupId>
                <artifactId>allure-maven-plugin</artifactId>
                <version>2.6</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.18.1</version>
            </plugin>
        </plugins>
    </reporting>
</project>

4.0.0
com.smartbear.soapuimaventurial
SOAPUIMaven教程
罐子
1.0-快照
SOAPUIMaven教程
http://maven.apache.org
ru.yandex.qatools.allure
诱惑父母
1
UTF-8
1.8.6
1.4.14
朱尼特
朱尼特
3.8.1
测试
ru.yandex.qatools.allure
诱惑maven插件
2.3-2
SmartBearPluginRepository
http://www.soapui.org/repository/maven2/
com.oracle
ojdbc14
10.2.0
运行时
com.smartbear
ready api maven插件
1.3.0
测试
测试
C:\Gee SoapUI项目备份\25Aug2015 POSBkup\May04-2015-Point of Sale.xml
C:\1年8月25日套件结果
许尼特
测试案例报告
错误代码
假的
真的
真的
soapui.home
C:\Users\pulipge\ReadyAPI-1.3.0\bin
真的
ru.yandex.qatools.allure
诱惑maven插件
2.6
org.apache.maven.plugins
maven surefire报告插件
2.18.1

诱惑maven插件应仅在报告部分。在您需要的常规依赖项中

<dependency>
    <groupId>ru.yandex.qatools.allure</groupId>
    <artifactId>allure-junit-adaptor</artifactId>
    <version>${allure.version}</version>
</dependency>

ru.yandex.qatools.allure

谢谢米希斯,瓦尼亚。我现在看到诱惑报告正在创建!!请看附件。 但是上面说0个测试套件,0个测试用例 原因可能是什么。我针对一个测试套件运行了这个案例。你能查一下吗。我还尝试了allure junit适配器,它错误地发现它找不到要下载的文件。所以我没有它。下面是我的POM

这是POM

<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/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>
      <groupId>com.smartbear.soapuiMavenTutorial</groupId>
    <artifactId>SoapUI-Maven-Tutorial</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>SoapUI-Maven-Tutorial</name>
    <url>http://maven.apache.org</url>


        <parent> 
        <groupId>ru.yandex.qatools.allure</groupId> 
         <artifactId>allure-examples-parent</artifactId> 
         <version>1.0</version> 
     </parent> 

     <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <aspectj.version>1.8.6</aspectj.version>
        <allure.version>1.4.14</allure.version>


    </properties>



    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>

            <dependency>
            <groupId>ru.yandex.qatools.allure</groupId> 
            <artifactId>allure-maven-plugin</artifactId> 
              <version>2.3-SNAPSHOT</version> 
        </dependency>

<dependency>
        <groupId>ru.yandex.qatools.allure</groupId>
        <artifactId>allure-testng-adaptor</artifactId>
        <version>1.4.14</version>
    </dependency>


        <!--Added this junit adaptor-->
            <!--dependency>
                <groupId>ru.yandex.qatools.allure</groupId>
                <artifactId>allure-junit-adaptor</artifactId>
                <version>2.2</version>
        </dependency-->


        <!--added jdbc below in build element-->
    </dependencies>
    <pluginRepositories>
        <pluginRepository>
            <id>SmartBearPluginRepository</id>
            <url>http://www.soapui.org/repository/maven2/</url>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <plugins>
            <plugin>
                <dependencies>
                    <dependency>
                        <groupId>com.oracle</groupId>
                        <artifactId>ojdbc14</artifactId>
                        <version>10.2.0</version>
                        <scope>runtime</scope>
                        <!--systemPath>C:\maven\ojdbc6.jar</systemPath-->
                    </dependency>
                </dependencies>
                <groupId>com.smartbear</groupId>
                <artifactId>ready-api-maven-plugin</artifactId>
                <version>1.3.0</version>


                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <projectFile>C:\Gee-SoapUI-Projects-Backup\25Aug2015-POSBkup\May04-2015-Point of Sale.xml</projectFile>
                            <outputFolder>C:\26-Aug-1suiteResults</outputFolder>
                            <reportFormat>xUNIT</reportFormat>
                            <reportName>TestCase Report</reportName>
                            <!--reportName>TestSuite Report</reportName-->
                            <testSuite>ErrorCodes</testSuite>
                            <junitReport>true</junitReport>
                            <printReport>true</printReport>
                            <exportAll>true</exportAll>
                            <soapuiProperties>
                                <property>
                                    <name>soapui.home</name>
                                    <value>C:\Users\pulipge\ReadyAPI-1.3.0\bin</value>
                                </property>
                            </soapuiProperties>

                                <properties> 
48                         <property> 
49                             <name>listener</name> 
50                             <value>ru.yandex.qatools.allure.junit.AllureRunListener</value> 
51                         </property> 
52                     </properties> 


                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

 <reporting>
        <excludeDefaults>true</excludeDefaults>
        <plugins>
            <plugin>
                <groupId>ru.yandex.qatools.allure</groupId>
                <artifactId>allure-maven-plugin</artifactId>
                <version>2.7</version>
            </plugin>

             <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>2.18.1</version>
      </plugin>         

        </plugins>
    </reporting>    

</project>

4.0.0
com.smartbear.soapuimaventurial
SOAPUIMaven教程
罐子
1.0-快照
SOAPUIMaven教程
http://maven.apache.org
ru.yandex.qatools.allure
诱惑父母
1
UTF-8
1.8.6
1.4.14
朱尼特
朱尼特
3.8.1
测试
ru.yandex.qatools.allure
诱惑maven插件
2.3-2
ru.yandex.qatools.allure
诱惑测试适配器
1.4.14
SmartBearPluginRepository
http://www.soapui.org/repository/maven2/
com.oracle
ojdbc14
10.2.0
运行时
com.smartbear
ready api maven插件
1.3.0
测试
测试
C:\Gee SoapUI项目备份\25Aug2015 POSBkup\May04-2015-Point of Sale.xml
C:\1年8月26日套件结果
许尼特
测试案例报告
错误代码
真的
真的
真的
soapui.home
C:\Users\pulipge\ReadyAPI-1.3.0\bin
48
49听众
50 ru.yandex.qatools.allure.junit.allurerunliner
51
52
真的
ru.yandex.qatools.allure
诱惑maven插件
2.7
org.apache.maven.plugins
maven surefire报告插件
2.18.1

但是我不确定JUnit适配器是否适合这种情况。SoapUI实际上是一个GUI工具。它是否生成JUnit测试?