如何在Jenkins上集成Fitnesse
上一篇文章讲了如何编写接口测试脚本及如何在Fitnesse上编写测试用例,我们在Fitnesse上面的测试用例是要手动点击去执行的,那么我们可以用定时任务或关联项目触发执行吗?毫无疑问,是可以的,接下来我们在Jenkins上进行相关配置。
在Jenkins上安装Fitnesse插件
点击Manage Plugins
搜索Fitnesse插件
新建Job
点击新建Item
输入任务名称,选择第一项,点击确定
构建选择Execute fitnesse tests
填写如下信息
说明:在配置Jenkins时或者执行Jenkins时,Fitnesse一定要处于运行状态。
构建后操作-增加构建后操作步骤
具体如下:
注意:
git可以不填写,需要手动将fitness服务启动