Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honour custom attribute values in TestNG default reports #2725

Closed
krmahadevan opened this issue Feb 7, 2022 · 1 comment · Fixed by #2759
Closed

Honour custom attribute values in TestNG default reports #2725

krmahadevan opened this issue Feb 7, 2022 · 1 comment · Fixed by #2759
Milestone

Comments

@krmahadevan
Copy link
Member

TestNG Version

Note: only the latest version is supported
7.5

TestNG supported the notion of custom attributes in it as part of this issue #2003

But these custom attributes don't show up in the TestNG provided default reports. This issue tracks this requirement.

@krmahadevan krmahadevan added this to the 7.6.0 milestone Feb 7, 2022
krmahadevan added a commit to krmahadevan/testng that referenced this issue May 15, 2022
@krmahadevan krmahadevan mentioned this issue May 15, 2022
3 tasks
krmahadevan added a commit to krmahadevan/testng that referenced this issue May 15, 2022
krmahadevan added a commit that referenced this issue May 15, 2022
@itkhanz
Copy link

itkhanz commented May 15, 2024

@krmahadevan Thanks for making this attribute also available in testng reports. Is it possible to add this custom attribute as part of junit xml reports also? perhaps as:

<testcase classname="com.tests.ExampleTest" name="test_example_method" time="23.164" attributes="{ATTR_NAME:ATTR:VALue}"/>

This will then enable other reporters to parse this information from JUNIT XML reports produced by TestNG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants