在服務器上部署了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,大功告成!