allure-framework / allure-framework/allure-python

allure-robotframework not supporting link issue pattern

未关闭
#618 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
task:new feature theme:robotframework
主要语言
Python
星标
814
派生
260
PR 合并指标
30 天内没有已合并 PR

描述

#### I'm submitting a ...
- [ ] bug report
- [x ] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behavior?
When creating allure results with allure-robotframework it doesn't support parameterized way for creating prefix for issue links. For example if robot test contains TAG "issue:myIssueId", allure results (and generated allure report) will contain URL into host where allure report is served (like http://10.251.83.101:65165/myIssueId).

Current workaround is to place URL into test TAG, e.g. issue:https://myJira.com/browse/myIssueId, This shows whole URL in the linkname on allure report.

#### What is the expected behavior?
Possibility to have parameterized base URL to issue tracking system that is copied in the front of issueId instead host where report is served. For example command line switch or property file that includes key-value pair like "allure.link.issue.pattern=https;//myJira.com/browse/". Then allure robotframework listener should add this value in front of issue link URL.

#### What is the motivation / use case for changing the behavior?
Generated allure report link section is more readable, when link name is shorter and URL is not shown on the report.

#### Please tell us about your environment:

- Allure version: 2.1.0
- Test framework: allure-python 2.9.43
- Allure adaptor: allure-robotframework 2.9.43

贡献指南

打开贡献指南

调研方向

从处理 Robot TAG values 的 allure-robotframework listener 开始,检查 issue links 的构建方式。检查现有的命令行或属性文件配置入口;当可配置的 issue-link base URL 为 issue ID 添加前缀,同时报告显示较短的链接名称时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。