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实现Token自动续期机制的示例代码

《JAVA实现Token自动续期机制的示例代码》本文主要介绍了JAVA实现Token自动续期机制的示例代码,通过动态调整会话生命周期平衡安全性与用户体验,解决固定有效期Token带来的风险与不便,感兴... 目录1. 固定有效期Token的内在局限性2. 自动续期机制:兼顾安全与体验的解决方案3. 总结PS

linux部署NFS和autofs自动挂载实现过程

《linux部署NFS和autofs自动挂载实现过程》文章介绍了NFS(网络文件系统)和Autofs的原理与配置,NFS通过RPC实现跨系统文件共享,需配置/etc/exports和nfs.conf,... 目录(一)NFS1. 什么是NFS2.NFS守护进程3.RPC服务4. 原理5. 部署5.1安装NF

MyBatis Plus实现时间字段自动填充的完整方案

《MyBatisPlus实现时间字段自动填充的完整方案》在日常开发中,我们经常需要记录数据的创建时间和更新时间,传统的做法是在每次插入或更新操作时手动设置这些时间字段,这种方式不仅繁琐,还容易遗漏,... 目录前言解决目标技术栈实现步骤1. 实体类注解配置2. 创建元数据处理器3. 服务层代码优化填充机制详

HTTP 与 SpringBoot 参数提交与接收协议方式

《HTTP与SpringBoot参数提交与接收协议方式》HTTP参数提交方式包括URL查询、表单、JSON/XML、路径变量、头部、Cookie、GraphQL、WebSocket和SSE,依据... 目录HTTP 协议支持多种参数提交方式,主要取决于请求方法(Method)和内容类型(Content-Ty

深入浅出Spring中的@Autowired自动注入的工作原理及实践应用

《深入浅出Spring中的@Autowired自动注入的工作原理及实践应用》在Spring框架的学习旅程中,@Autowired无疑是一个高频出现却又让初学者头疼的注解,它看似简单,却蕴含着Sprin... 目录深入浅出Spring中的@Autowired:自动注入的奥秘什么是依赖注入?@Autowired

基于Redis自动过期的流处理暂停机制

《基于Redis自动过期的流处理暂停机制》基于Redis自动过期的流处理暂停机制是一种高效、可靠且易于实现的解决方案,防止延时过大的数据影响实时处理自动恢复处理,以避免积压的数据影响实时性,下面就来详... 目录核心思路代码实现1. 初始化Redis连接和键前缀2. 接收数据时检查暂停状态3. 检测到延时过

SpringBoot实现RSA+AES自动接口解密的实战指南

《SpringBoot实现RSA+AES自动接口解密的实战指南》在当今数据泄露频发的网络环境中,接口安全已成为开发者不可忽视的核心议题,RSA+AES混合加密方案因其安全性高、性能优越而被广泛采用,本... 目录一、项目依赖与环境准备1.1 Maven依赖配置1.2 密钥生成与配置二、加密工具类实现2.1

Python使用Tenacity一行代码实现自动重试详解

《Python使用Tenacity一行代码实现自动重试详解》tenacity是一个专为Python设计的通用重试库,它的核心理念就是用简单、清晰的方式,为任何可能失败的操作添加重试能力,下面我们就来看... 目录一切始于一个简单的 API 调用Tenacity 入门:一行代码实现优雅重试精细控制:让重试按我

SQL Server跟踪自动统计信息更新实战指南

《SQLServer跟踪自动统计信息更新实战指南》本文详解SQLServer自动统计信息更新的跟踪方法,推荐使用扩展事件实时捕获更新操作及详细信息,同时结合系统视图快速检查统计信息状态,重点强调修... 目录SQL Server 如何跟踪自动统计信息更新:深入解析与实战指南 核心跟踪方法1️⃣ 利用系统目录

Spring Security 单点登录与自动登录机制的实现原理

《SpringSecurity单点登录与自动登录机制的实现原理》本文探讨SpringSecurity实现单点登录(SSO)与自动登录机制,涵盖JWT跨系统认证、RememberMe持久化Token... 目录一、核心概念解析1.1 单点登录(SSO)1.2 自动登录(Remember Me)二、代码分析三、