在服务器上部署了TestLink;然后了解到TestLink和bug管理系统JIRA可以关联,正好我司用的JIRA平台,所以尝试了一番。就整理了这篇文章供大家参考。
环境:TestLink 1.9.19版本,JIRA v7.13.0版本,亲测有效!
步骤1:打开安装好的testlink平台,进入主界面点击左侧:issue TrackerManagement
步骤2:创建问题跟踪系统(我这已经创建过了)
步骤3:类型选择“jira (Interface: rest)”填写配置项:
<!-- Template jirarestInterface -->
<issuetracker>
<username>JIRA登录的用户名,自己的账户就行,不要求admin</username>
<password>JIRA登录用户名的密码</password>
<uribase>JIRA的base_url,例如:http://172.16.117.20:8881/</uribase>
<!-- CRITIC - WITH HTTP getIssue() DOES NOT WORK -->
<uriapi>base_url/rest/api/latest/,例如:http://172.16.117.20:8881/rest/api/latest/</uriapi>
<uriview>base_url/browse/,例如:http://172.16.117.20:8881/browse/</uriview>
<userinteraction>1/0</userinteraction>
<!-- 1: User will be able to manage following attributes from GUI -->
<!-- Issue Type, Issue Priority, Affects Versions, Components -->
<!-- 0: values for attributes will be taken FROM this config XML from GUI -->
<!-- Configure This if you want be able TO CREATE ISSUES -->
<projectkey>JIRA项目的key</projectkey>
<issuetype>JIRA问题的id</issuetype>
<issuepriority>JIRA问题的优先级id</issuepriority>
<!--
<attributes>
<customFieldValues>
<customField>
<customfieldId>customfield_10800</customfieldId>
<type>NumberField</type> <values><value>111</value></values>
</customField>
<customField>
<customfieldId>customfield_10900</customfieldId>
<type>MultiSelect</type> <values><value>Yamaha Factory Racing</value>
<value>Ducati</value></values>
</customField>
</customFieldValues>
</attributes>
-->
</issuetracker>
3.1、如何找projectkey?issuetype?issuepriority?打开JIRA,进入你需要提交问题的项目随便找一个问题,进入问题详情页选择导出为XML格式
步骤4:点击测试连接,如果成功的话,就没问题了
步骤5:进入用例执行界面试试吧
5.1.有2个提交bug的入口;随便用哪个都是OK的!
5.2.最后记得点击3个表情,第一个代表通过,第二个代表失败,第三个代表锁定(阻塞)
步骤6:进入JIRA界面查看提交的bug,大功告成!