本文主要是介绍Testlink关联JIRA 自动提交缺陷,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一、环境
名称 | 版本 |
Testlink | v1.9.20 |
JIRA | v7.13.0 |
二、关联步骤
(一)配置Testlink
1.缺陷跟进系统管理
testlink进入主界面点击左侧:issue TrackerManagement 即缺陷跟进系统管理
2.创建问题跟踪系统
选择jira(Interface:rest)
3.设置文本框输入配置内容
<!-- 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>
4.如何获得关键属性:projectkey、issuetype、issuepriority
手动打开JIRA页面,进入你需要提交问题的某个项目随便找一个问题缺陷
进入问题详情页选择导出为XML格式
导出的xml文件可以找到关键属性projectkey、issuetype、issuepriority
projectket
issuetype
issuepriority
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<!--
RSS generated by JIRA (7.3.8#73019-sha1:94e8771b8094eef96c119ec22b8e8868d286fa88) at Thu Apr 15 23:42:45 CST 2021It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://jira.10101111.com/si/jira.issueviews:issue-xml/ZCEDL-15566/ZCEDL-15566.xml?field=key&field=summary-->
<rss version="0.92">
<script/>
<script/>
<channel>
<title>UCARINC-事务追踪系统</title>
<link>http://jira.10101111.com</link>
<description>此文件以XML格式展现一个问题</description>
<language>zh-cn</language>
<build-info>
<version>7.3.8</version>
<build-number>73019</build-number>
<build-date>12-06-2017</build-date>
</build-info>
<item>
<title>[ZCEDL-15566] 【渠道新增虚拟号】移动虚拟小号再拿去绑定移动虚拟小号,不能通话</title>
<link>http://jira.10101111.com/browse/ZCEDL-15566</link>
<project id="11313" key="ZCEDL">专车缺陷/改进统筹</project>
<description><p><b>前置条件:</b></p> <p>创建订单支付类型为“企业支付”的订单</p> <p> </p> <p><b>操作步骤:</b><br/> 1.订单改派</p> <p>2.移动虚拟小号做二次绑定(移动虚拟小号绑定移动虚拟小号)</p> <p> </p> <p><b>实际结果:</b></p> <p>1.无法通话(乘车人打司机、司机打乘车人、渠道订车人打司机、司机打渠道订车人、订车人打司机、司机打订车人)</p> <p> </p> <p><b>期望结果:</b></p> <p>可以通话</p></description>
<environment/>
<key id="250873">ZCEDL-15566</key>
<summary>【渠道新增虚拟号】移动虚拟小号再拿去绑定移动虚拟小号,不能通话</summary>
<type id="1" iconUrl="http://jira.10101111.com/secure/viewavatar?size=xsmall&avatarId=12803&avatarType=issuetype">故障</type>
<priority id="4" iconUrl="http://jira.10101111.com/images/icons/priorities/minor.svg">P3</priority>
<status id="6" iconUrl="http://jira.10101111.com/images/icons/statuses/closed.png" description="这一问题被认为是完成, 这项决议是正确的。问题已关闭可以重新开放。">已关闭</status>
<statusCategory id="3" key="done" colorName="green"/>
<resolution id="1">已修复</resolution>
<assignee username="shengyu.shi">石胜宇 [X]</assignee>
<reporter username="yinchi.li">李银池</reporter>
<labels>
<label>UCARPPP-9855</label>
</labels>
<created>Tue, 15 Dec 2020 14:31:08 +0800</created>
<updated>Wed, 16 Dec 2020 18:16:50 +0800</updated>
<resolved>Wed, 16 Dec 2020 18:16:50 +0800</resolved>
<version>6.8</version>
<component>订单后台</component>
<due>Tue, 22 Dec 2020 00:00:00 +0800</due>
<votes>0</votes>
<watches>1</watches>
<comments>
<comment id="385381" author="yinchi.li" created="Wed, 16 Dec 2020 18:16:50 +0800"><p>验证通过,订单号:35217605200111</p></comment>
</comments>
<issuelinks>
<issuelinktype id="10001">
<name>Cloners</name>
<outwardlinks description="clones">
<issuelink>
<issuekey id="250750">ZCEDL-15559</issuekey>
</issuelink>
</outwardlinks>
</issuelinktype>
</issuelinks>
<attachments> </attachments>
<subtasks> </subtasks>
<customfields>
<customfield id="customfield_12728" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
<customfieldname>协议类型</customfieldname>
<customfieldvalues>
<customfieldvalue key="12218">
<![CDATA[ TCP ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_10008" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
<customfieldname>开始日</customfieldname>
<customfieldvalues>
<customfieldvalue>Wed, 9 Dec 2020 00:00:00 +0800</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12727" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
<customfieldname>操作系统类型</customfieldname>
<customfieldvalues>
<customfieldvalue key="12216">
<![CDATA[ Linux ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12707" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
<customfieldname>是否必现</customfieldname>
<customfieldvalues>
<customfieldvalue key="12211">
<![CDATA[ 是 ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12708" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
<customfieldname>是否用例发现</customfieldname>
<customfieldvalues>
<customfieldvalue key="12213">
<![CDATA[ 否 ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12506" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
<customfieldname>期望PRD完成日期</customfieldname>
<customfieldvalues>
<customfieldvalue>Wed, 9 Dec 2020 00:00:00 +0800</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12516" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
<customfieldname>期望回复时间</customfieldname>
<customfieldvalues>
<customfieldvalue>Wed, 9 Dec 2020 00:00:00 +0800</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12602" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
<customfieldname>期望评审完成日期</customfieldname>
<customfieldvalues>
<customfieldvalue>Wed, 9 Dec 2020 00:00:00 +0800</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
<customfieldname>本问题涉及的管理类型</customfieldname>
<customfieldvalues>
<customfieldvalue key="10303">
<![CDATA[ 程序变更管理 ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
<customfieldname>测试负责人</customfieldname>
<customfieldvalues>
<customfieldvalue>yinchi.li</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12729" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
<customfieldname>源 IP</customfieldname>
<customfieldvalues>
<customfieldvalue>示例:A访问B,A为源IP。 <br/> 说明:请输入以下格式(不支持域名,如为域名请提供解析后IP): <br/> 1、10.204.0.0/16 <br/> 2、10.204.1.1-10.204.1.10 <br/> 3、Any(不限制源IP,一般用于面向互利网开通策略时使用)</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12795" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
<customfieldname>目的资源及端口</customfieldname>
<customfieldvalues>
<customfieldvalue>示例: <br/> 1、堡垒机 10.3.1.34 端口:22,80</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_12305" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
<customfieldname>等级</customfieldname>
<customfieldvalues>
<customfieldvalue>0|i11nxr:</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_10400" key="com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker">
<customfieldname>缺陷责任人</customfieldname>
<customfieldvalues>
<customfieldvalue>
<![CDATA[ shengyu.shi ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
<customfield id="customfield_11300" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
<customfieldname>问题归属</customfieldname>
<customfieldvalues>
<customfieldvalue key="11400">
<![CDATA[ 非第三方 ]]>
</customfieldvalue>
</customfieldvalues>
</customfield>
</customfields>
</item>
</channel>
</rss>
5.点击测试连接,如果成功的话,就没问题了
6.用例执行界面提交bug
(1)有2个提交bug的入口,有2个提交bug的入口;随便用哪个都是可以
(2)最后记得点击3个表情,第一个代表通过,第二个代表失败,第三个代表锁定(阻塞)
(3)进入JIRA界面查看提交的bug
这篇关于Testlink关联JIRA 自动提交缺陷的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!