最近历经九九八十一难,在服务器上部署了testlink;然后了解到testlink和bug管理系统可以关联,正好我司用的JIRA平台,所以尝试了一番。
发现网上的资料多是2015年之前的,比较老,也不适用啦,就整理了一个文档供大家参考。
步骤1:打开安装好的testlink平台,进入主界面【如果没有安装的话,参考网址:https://www.jianshu.com/p/80c16cd331eb】

步骤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>

疑问:
1、如何找projectkey?issuetype?issuepriority?
打开JIRA,进入你需要提交问题的项目
随便找一个问题,进入问题详情页
选择导出为XML格式

然后就看到自己想要的数据啦

步骤四:点击测试连接,如果成功的话,就没问题了
步骤五:进入用例执行界面试试吧~



步骤六:进入JIRA界面查看提交的bug,大功告成~

原创文章,转载请注明出处
网友评论