Jenkins - Soapui JUnit test result Report

2015-11-09  籽藤 

我在今年三月份玩 Ready!API 的时候最新版本还是 1.2.2,到最近已经升级到 1.4.1 了。之前 1.3 版本中还存在切换 environment 的一些 bugs 在 1.4.1 版本已经 fixed 了。

之前博文中,我提过 Jenkins 中为 soapui 项目脚本新建 Maven项目的配置方法,但还有另一个方法,而且是测试结果更为友好的方法配置 soapui 项目。即,在 Jenkins 中创建 Freestyle project。

以下仅针对 jenkins soapui 说明 Freestyle project 与 Maven project 配置的不同

1. Build

Maven project 要指定 pom.xml, Freestyle project 可以通过 Execute Shell 方式运行 mvn 命令。如:

pwd

cd ${WORKSPACE}/Document/testing/01-SoapUI/

/root/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven/bin/mvn com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2:test

2. Post-build Actions

Freestyle project 可以配置“Publish JUnit test result report”。当然,前提是,soapui 脚本相关的 pom.xml 配置了 junitReport,可以生成报告文件。

<configuration>

  <junitReport>true</junitReport>

 </configuration>


443°/4432 人阅读/0 条评论 发表评论

登录 后发表评论