ddlddx0000 发表于 2018-1-8 10:46:56

Jenkins结合testng注意事项

  1.在生成测试报告时,因为Jenkins自带的只有Junit的测试报告,不会显示testng的。
https://images2015.cnblogs.com/blog/628182/201706/628182-20170615134112275-1950611007.png
  2.要想显示Publish TestNG Results这一项,首先需要在jenkins的首页-系统管理-管理插件-可用插件中搜索:TestNG Results Plugin,并安装。
  3.安装成功后重启Jenkins,即可以用了。
  4.然后在构建后操作里,选择Publish TestNG Results,填写**/testng-results.xml
https://images2015.cnblogs.com/blog/628182/201706/628182-20170615134618806-951588719.png
  5.其他与构建Junit的一致。
  参考:http://www.cnblogs.com/Jourly/p/6892557.html
页: [1]
查看完整版本: Jenkins结合testng注意事项