8-12接口测试进阶-4集成接口测试

1.项目的pom.xml加入build

   <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
                <configuration>
                    <suiteXmlFiles>
                        <suiteXmlFile>testng.xml</suiteXmlFile>
                    </suiteXmlFiles>
                </configuration>
            </plugin>
        </plugins>
    </build>

2.jenkins安装需要用到的插件

系统管理-插件管理,安装 Maven Integration和testNg

3.建立工程

构建一个maven项目的任务

build填入pom.xml的地址和构建语句

4.构建任务


posted on 2019-10-19 21:08  singleSpace  阅读(183)  评论(0编辑  收藏  举报