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项目提交到云服务器的流程步骤》所谓将项目提交到云服务器即将你的项目打成一个jar包然后提交到云服务器即可,因此我们需要准备服务器环境为:Linux+JDK+MariDB(MySQL)+Gi... 目录1. 安装 jdk1.1 查看 jdk 版本1.2 下载 jdk2. 安装 mariadb(my

IDEA自动生成注释模板的配置教程

《IDEA自动生成注释模板的配置教程》本文介绍了如何在IntelliJIDEA中配置类和方法的注释模板,包括自动生成项目名称、包名、日期和时间等内容,以及如何定制参数和返回值的注释格式,需要的朋友可以... 目录项目场景配置方法类注释模板定义类开头的注释步骤类注释效果方法注释模板定义方法开头的注释步骤方法注

pytorch自动求梯度autograd的实现

《pytorch自动求梯度autograd的实现》autograd是一个自动微分引擎,它可以自动计算张量的梯度,本文主要介绍了pytorch自动求梯度autograd的实现,具有一定的参考价值,感兴趣... autograd是pytorch构建神经网络的核心。在 PyTorch 中,结合以下代码例子,当你

Python如何自动生成环境依赖包requirements

《Python如何自动生成环境依赖包requirements》:本文主要介绍Python如何自动生成环境依赖包requirements问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑... 目录生成当前 python 环境 安装的所有依赖包1、命令2、常见问题只生成当前 项目 的所有依赖包1、

SQL表间关联查询实例详解

《SQL表间关联查询实例详解》本文主要讲解SQL语句中常用的表间关联查询方式,包括:左连接(leftjoin)、右连接(rightjoin)、全连接(fulljoin)、内连接(innerjoin)、... 目录简介样例准备左外连接右外连接全外连接内连接交叉连接自然连接简介本文主要讲解SQL语句中常用的表

如何高效移除C++关联容器中的元素

《如何高效移除C++关联容器中的元素》关联容器和顺序容器有着很大不同,关联容器中的元素是按照关键字来保存和访问的,而顺序容器中的元素是按它们在容器中的位置来顺序保存和访问的,本文介绍了如何高效移除C+... 目录一、简介二、移除给定位置的元素三、移除与特定键值等价的元素四、移除满足特android定条件的元

Spring Boot项目中结合MyBatis实现MySQL的自动主从切换功能

《SpringBoot项目中结合MyBatis实现MySQL的自动主从切换功能》:本文主要介绍SpringBoot项目中结合MyBatis实现MySQL的自动主从切换功能,本文分步骤给大家介绍的... 目录原理解析1. mysql主从复制(Master-Slave Replication)2. 读写分离3.

微信公众号脚本-获取热搜自动新建草稿并发布文章

《微信公众号脚本-获取热搜自动新建草稿并发布文章》本来想写一个自动化发布微信公众号的小绿书的脚本,但是微信公众号官网没有小绿书的接口,那就写一个获取热搜微信普通文章的脚本吧,:本文主要介绍微信公众... 目录介绍思路前期准备环境要求获取接口token获取热搜获取热搜数据下载热搜图片给图片加上标题文字上传图片

SpringBoot中封装Cors自动配置方式

《SpringBoot中封装Cors自动配置方式》:本文主要介绍SpringBoot中封装Cors自动配置方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录SpringBoot封装Cors自动配置背景实现步骤1. 创建 GlobalCorsProperties

idea中创建新类时自动添加注释的实现

《idea中创建新类时自动添加注释的实现》在每次使用idea创建一个新类时,过了一段时间发现看不懂这个类是用来干嘛的,为了解决这个问题,我们可以设置在创建一个新类时自动添加注释,帮助我们理解这个类的用... 目录前言:详细操作:步骤一:点击上方的 文件(File),点击&nbmyHIgsp;设置(Setti