Xray-App / xray-testng-extensions

Enhanced TestNG integration with Xray Test Management for Jira
MIT License
9 stars 5 forks source link

Use details from the @Test TestNG annotation if present (e.g. description) #1

Closed vlad230 closed 1 year ago

vlad230 commented 2 years ago

Hi guys,

I'm starting this issue topic as suggested by @bitcoder here: https://github.com/cbeust/testng/issues/1673

I'm working on an integration between TestNG + Allure Reports + Xray Jenkins plugin + Jira Xray in order to report results.

I think it would be a good idea to implement the propagation of the @Test TestNG annotation details like description to Jira Xray in the following way:

This behaviour is already used by other reporting tools like Allure Reports and the "description" attribute is already present by default inside the testng-results.xml:

.. <test-method signature="testPassing()[pri:0, instance:ui.tests.FreeTextEditorTest@7f9ab969]" started-at="2022-09-13T12:09:37 UTC" name="testPassing" description="Dummy test pass" finished-at="2022-09-13T12:09:37 UTC" duration-ms="1" status="PASS"> <reporter-output> </reporter-output> ...

I have used the now deprecated com.xpandit.xray.xray-testng-extensions and I think it would be easy to fix this since this one was putting the name of the test method in the Jira summary rather than the available description.

Keep the @XrayTest annotation behaviour to overwrite the new default behaviour for people who need more detailed customization.

Thanks!

bitcoder commented 1 year ago

I'll be considering in an upcoming version

bitcoder commented 1 year ago

@vlad230 can you please check the master code, and see if it addresses your need? I think so but I'm not a frequent allure user.

bitcoder commented 1 year ago

@vlad230 feedback would be appreciated to decide whether we can close this issue or not. Thanks in advance!

bitcoder commented 1 year ago

Hi @vlad230 , any feedback please? Thanks

bitcoder commented 1 year ago

Closing by lack of feedback