首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >{Soap UI+ mulesoft}回归集成

{Soap UI+ mulesoft}回归集成
EN

Stack Overflow用户
提问于 2019-04-05 04:06:13
回答 2查看 89关注 0票数 0

作为回归套件的一部分,我需要在触发新构建后触发自动化soap UI套件,但我没有将这些工具集成在一起的想法。

我找不到任何用于soap UI/ready api的插件,所以请在这方面帮助我……

EN

回答 2

Stack Overflow用户

发布于 2019-04-05 04:35:07

Mule应用程序使用Maven作为构建工具,因此您可以将SoapUI测试作为Maven构建阶段的一部分进行集成。下面是关于maven插件的一些信息:

https://support.smartbear.com/readyapi/docs/integrations/maven/index.html

Googling Maven Soap UI还返回有关设置此设置的博客文章和一些示例github repos。

票数 0
EN

Stack Overflow用户

发布于 2019-04-08 15:11:54

您可以按照以下步骤操作--

  1. 在SOAP UI中编写测试用例,并导出测试套件XML。
  2. 创建一个maven项目,并使用您的测试套件详细信息来配置以下POM文件。

代码语言:javascript
复制
                    <projectFile>soapUi-TestSuite File Location</projectFile>
                    <testSuite>TestSuiteName</testSuite>
                    <endpoint>endpoint URL</endpoint>

  1. run - mvn clean test

代码语言:javascript
复制
<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>RegTesting</groupId>
    <artifactId>RegTesting</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>RegTesting</name>
    <url>http://maven.apache.org</url>
    <repositories>
        <repository>
            <id>Central</id>
            <url>http://central.maven.org/maven2/</url>
        </repository>
    </repositories>
    <!-- Plugin repository for test suites generated via soap UI -->
    <pluginRepositories>
        <pluginRepository>
            <id>smartbear-sweden-plugin-repository</id>
            <url>http://www.soapui.org/repository/maven2/</url>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <plugins>
            <plugin>
                <groupId>com.smartbear.soapui</groupId>
                <artifactId>soapui-maven-plugin</artifactId>
                <version>5.4.0</version>
                <configuration>
                    <projectFile>soapUi-TestSuite File Location</projectFile>
                    <testSuite>TestSuiteName</testSuite>
                    <endpoint>endpoint URL</endpoint>
                    <printReport>true</printReport>
                    <junitReport>false</junitReport>
                    <outputFolder>target</outputFolder>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>xmlunit</groupId>
                        <artifactId>xmlunit</artifactId>
                        <version>1.6</version>
                    </dependency>
                    <dependency>
                        <groupId>org.skyscreamer</groupId>
                        <artifactId>jsonassert</artifactId>
                        <version>1.2.3</version>
                    </dependency>
                    <dependency>
                        <groupId>com.jgoodies</groupId>
                        <artifactId>forms</artifactId>
                        <version>1.0.7</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
</project>  ```
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55524095

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档