allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

[Feature] Add link type for "User Story" with a different icon

Open harmin-parra opened this issue 2 years ago • 2 comments

Describe the Bug

I want to propose a new Feature.

Currently, Allure proposes a issue link type.

The inconvenience I have is that in my use case, I want to add links to two types of issues (bug & user story) and Allure assigns the same icon to both links image

I would like to add links to "user stories" and have a different icon associated to those links.

Is it possible to add a link type named story with a different icon associated to it?

It would share the same link pattern of the issue link type

Steps to Reproduce

Let me give you an example of how this new feature should work :

For java: add @Story annotation

class TestMyWebsite {

    @Link(name = "Website", url = "https://dev.example.com/")
    @Issue("AUTH-123")
    @Story("AUTH-124")
    @TmsLink("TMS-456")
    void testAuthentication() {
        // ...
    }
}

For Python: add @allure.story decorator

@allure.link("https://dev.example.com/", name="Website")
@allure.issue("AUTH-123")
@allure.story("AUTH-124")
@allure.testcase("TMS-456")
def test_authentication():
    ...

The story link type will share the same link pattern of the issue link type, but will have a different icon associated.

Expected Behaviour

The story link type will share the same link pattern of the issue link type, but will have a different icon associated.

Screenshots or Additional Context

No response

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-junit5

What version of Allure Integration you are using?

2.24.1

What version of Allure Report you are using?

2.24.1

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

harmin-parra avatar Dec 25 '23 21:12 harmin-parra

Hmm... isn't it possible for you to use a workaround like allure.link("https://my-tracker.com/issue/${id}", name="✍ ${id}")? 🤔

noomorph avatar May 09 '24 08:05 noomorph

Thanks ;-) It works like a charm let id = 'NIT-T346' allure.link('https://jira.my.on/secure/Tests.jspa#/testCase/${id}', name='✍ 🤔 🔥 '+id)

gedeal avatar May 31 '24 13:05 gedeal