allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
724 stars 237 forks source link

[Pytest] how to link Jira issue to defect dashboard in Allure TestOPS #615

Closed AleksandrBykovCa closed 3 years ago

AleksandrBykovCa commented 3 years ago

I'm submitting a ...

What is the current behavior?

Manually link issues as a defect

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

None

What is the expected behavior?

Provide the fixture to link issues to defects dashboard in launches something like this: @allure.defects('url', 'ISSUE')

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Allure version OPS: 3.170.1 Test framework: pytest@6.2.4 Allure adaptor: allure-pytest@2.9.43

Thank you!

AleksandrBykovCa commented 3 years ago

@Denis-Alexeev, Hi,

This case for defects board not working

import allure
from allure_commons.types import LinkType

@allure.issue('http://jira.com/ISSUE-1', 'issue_name')
@allure.link('http://jira.com/ISSUE-1', LinkType.ISSUE, 'issue_name')
def test_my_test():
    pass

As I mentioned above I use Allure version OPS: 3.170.1

Launches: Screen Shot 2021-09-03 at 7 19 36 AM

Defects: Screen Shot 2021-09-03 at 7 20 11 AM

Test case result, hear I can find an issues links Screen Shot 2021-09-03 at 7 37 59 AM

any ideas ?

sseliverstov commented 3 years ago

@AleksandrBykovCa Here about defects in Allure TestOps https://docs.qameta.io/allure-testops/briefly/defects/