一、源码管理
填写git 测试代码地址、git账号密码、分支名称,用于获取远程源代码
二、构建环境
因我的测试代码使用ant编译,所以选择合适版本的ant插件,build file填写ant编译时使用的编译脚本名。
三、构建
TestLink插件可以根据testng测试结果自动填充到testlink。
testng测试结果映射关系Pass/Fail->class name/method name->Key Custom Filed 1/Key Custom Filed 2。
在testlink中的映射关系是Key Custom Filed 1/Key Custom Filed 2->class name/method name->case name->Pass/Fail。
所以在testlink中的工作是在对应的Build Name下,添加Key Custom Filed 1/Key Custom Filed 2,并在case name中设置Key Custom Filed 1/Key Custom Filed 2的值为测试代码中对应的class name/method name。
四、构建后操作
构建后操作比较丰富和简单,简单介绍几个
4.1 邮件通知
4.2 上传测试结果到FTP
4.3 发布到SVN
SVN publisher 下载路径