Testlink关联JIRA 自动提交缺陷

2024-09-03 20:38

本文主要是介绍Testlink关联JIRA 自动提交缺陷,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

一、环境

名称版本

Testlink

v1.9.20
JIRAv7.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&amp;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 自动提交缺陷的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1133986

相关文章

Java中实现订单超时自动取消功能(最新推荐)

《Java中实现订单超时自动取消功能(最新推荐)》本文介绍了Java中实现订单超时自动取消功能的几种方法,包括定时任务、JDK延迟队列、Redis过期监听、Redisson分布式延迟队列、Rocket... 目录1、定时任务2、JDK延迟队列 DelayQueue(1)定义实现Delayed接口的实体类 (

shell脚本自动删除30天以前的文件(最新推荐)

《shell脚本自动删除30天以前的文件(最新推荐)》该文章介绍了如何使用Shell脚本自动删除指定目录下30天以前的文件,并通过crontab设置定时任务,此外,还提供了如何使用Shell脚本删除E... 目录shell脚本自动删除30天以前的文件linux按照日期定时删除elasticsearch索引s

Go Mongox轻松实现MongoDB的时间字段自动填充

《GoMongox轻松实现MongoDB的时间字段自动填充》这篇文章主要为大家详细介绍了Go语言如何使用mongox库,在插入和更新数据时自动填充时间字段,从而提升开发效率并减少重复代码,需要的可以... 目录前言时间字段填充规则Mongox 的安装使用 Mongox 进行插入操作使用 Mongox 进行更

C语言中自动与强制转换全解析

《C语言中自动与强制转换全解析》在编写C程序时,类型转换是确保数据正确性和一致性的关键环节,无论是隐式转换还是显式转换,都各有特点和应用场景,本文将详细探讨C语言中的类型转换机制,帮助您更好地理解并在... 目录类型转换的重要性自动类型转换(隐式转换)强制类型转换(显式转换)常见错误与注意事项总结与建议类型

MYSQL关联关系查询方式

《MYSQL关联关系查询方式》文章详细介绍了MySQL中如何使用内连接和左外连接进行表的关联查询,并展示了如何选择列和使用别名,文章还提供了一些关于查询优化的建议,并鼓励读者参考和支持脚本之家... 目录mysql关联关系查询关联关系查询这个查询做了以下几件事MySQL自关联查询总结MYSQL关联关系查询

Redis 多规则限流和防重复提交方案实现小结

《Redis多规则限流和防重复提交方案实现小结》本文主要介绍了Redis多规则限流和防重复提交方案实现小结,包括使用String结构和Zset结构来记录用户IP的访问次数,具有一定的参考价值,感兴趣... 目录一:使用 String 结构记录固定时间段内某用户 IP 访问某接口的次数二:使用 Zset 进行

Git提交代码详细流程及问题总结

《Git提交代码详细流程及问题总结》:本文主要介绍Git的三大分区,分别是工作区、暂存区和版本库,并详细描述了提交、推送、拉取代码和合并分支的流程,文中通过代码介绍的非常详解,需要的朋友可以参考下... 目录1.git 三大分区2.Git提交、推送、拉取代码、合并分支详细流程3.问题总结4.git push

IDEA如何让控制台自动换行

《IDEA如何让控制台自动换行》本文介绍了如何在IDEA中设置控制台自动换行,具体步骤为:File-Settings-Editor-General-Console,然后勾选Usesoftwrapsin... 目录IDEA如何让控制台自http://www.chinasem.cn动换行操作流http://www

vscode保存代码时自动eslint格式化图文教程

《vscode保存代码时自动eslint格式化图文教程》:本文主要介绍vscode保存代码时自动eslint格式化的相关资料,包括打开设置文件并复制特定内容,文中通过代码介绍的非常详细,需要的朋友... 目录1、点击设置2、选择远程--->点击右上角打开设置3、会弹出settings.json文件,将以下内

Python脚本实现自动删除C盘临时文件夹

《Python脚本实现自动删除C盘临时文件夹》在日常使用电脑的过程中,临时文件夹往往会积累大量的无用数据,占用宝贵的磁盘空间,下面我们就来看看Python如何通过脚本实现自动删除C盘临时文件夹吧... 目录一、准备工作二、python脚本编写三、脚本解析四、运行脚本五、案例演示六、注意事项七、总结在日常使用