Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.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
具有soapui构建执行的maven需要提交junit报告_Maven_Jenkins_Soapui - Fatal编程技术网

具有soapui构建执行的maven需要提交junit报告

具有soapui构建执行的maven需要提交junit报告,maven,jenkins,soapui,Maven,Jenkins,Soapui,我刚接触过maven和soapui 我正在寻找一个解决方案,使用eclipse在maven中运行soapui构建,还需要maven pdf报告 如果有可能,请指导我执行 需要在maven项目中移动我的soapui构建(Functional+DB Testcase)? 2.在使用soapui 5.3.1/soapui pro时,需要在pom.xml中配置哪些插件? 3.在执行soapui内置maven项目时,是否也可以获得maven报告或junit报告以及饼图报告? 4.是否可以将我的自动化报告转

我刚接触过maven和soapui

我正在寻找一个解决方案,使用eclipse在maven中运行soapui构建,还需要maven pdf报告

如果有可能,请指导我执行

  • 需要在maven项目中移动我的soapui构建(Functional+DB Testcase)? 2.在使用soapui 5.3.1/soapui pro时,需要在pom.xml中配置哪些插件? 3.在执行soapui内置maven项目时,是否也可以获得maven报告或junit报告以及饼图报告? 4.是否可以将我的自动化报告转换为pdf格式? 5.需要在jenkins中附上pdf报告
  • 我期待着你的宝贵意见,这将更有助于实现我的项目完成

    完成的步骤:

    soapui版本5.3.1

    1.Soapui项目名称:testmavenproject.xml(包含db和功能测试用例)

    2.maven项目已创建:

    pom.xml文件

    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.codebind</groupId>
    <artifactId>maven-soapui</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    </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">
    4.0.0
    com.codebind
    马文索皮
    罐子
    1.0-快照
    
    3.Jenkins创造的工作

    1)添加soupui maven pulgin pom.xml

            <!--Add the repository for where Maven can find the soapUI Plugin-->
            <pluginRepositories>
            <pluginRepository>
                <id>eviwarePluginRepository</id>
                <url>http://www.eviware.com/repository/maven2/</url>
            </pluginRepository>
            </pluginRepositories>
            <build>
            <plugins>
            <plugin>
            <groupId>eviware</groupId>
            <artifactId>maven-soapui-plugin</artifactId>
            <!--This is the version of soapUI to grab from plugin repo-->
            <!--At the time of writing the 3.0.1 plugin had not been created-->
            <version>2.5.1</version>
            <configuration>
                <!--The location of your soapUI setting file-->
                <projectFile>/home/test/test.xml</projectFile>
                <!--Where to place the output of the run-->
                <outputFolder>/home/test/output/</outputFolder>
                <!--Make the jUnit results file-->
                <junitReport>true</junitReport>
            </configuration>
            <executions>
                <execution>
                <id>soapUI</id>
                <!--Run as part of the test phase in the Maven lifecycle-->
                <phase>test</phase>
                <goals>
                    <!--Run the test phase of eviware:maven-soapui-plugin-->
                    <goal>test</goal>
                </goals>
                </execution>
            </executions>
            </plugin>
            </plugins>
            </build>
    
    
    EviwarePlugin存储库
    http://www.eviware.com/repository/maven2/
    电子设备
    

    也许这是一个迟来的答案,但我建议你一步一步地使用这个答案,因为它确实有帮助。 至于詹金斯一体化:

    • 创建一个maven作业
    • 在包含插件配置的pom上配置它
    • 在maven目标和选项中使用:com.smartbear.soapui:soapui maven插件:test
    作为对您问题的回答:

    • 您的soapui项目文件应该添加到maven项目中
    • 对于非专业版本,可以使用junit报告,但对于专业版本,可以使用其他格式。有关专业和非专业功能的更多详细信息,请查看