Skip to content

Respect TestNG XML parameter overrides in reported results - #1365

Merged
baev merged 1 commit into
mainfrom
fix-1359
Jul 31, 2026
Merged

Respect TestNG XML parameter overrides in reported results#1365
baev merged 1 commit into
mainfrom
fix-1359

Conversation

@baev

@baev baev commented Jul 31, 2026

Copy link
Copy Markdown
Member

Context

Allure TestNG now reports XML parameters using the same suite → test → class → method precedence as TestNG itself. Class-level and method-level overrides are preserved even when a test method does not inject the parameter directly, so reports reflect the configuration the test actually ran with.

For example, a class that overrides headless from true at the <test> level to false now appears as headless: false in Allure Report and Allure TestOps.

fixes #1359

Checklist

@baev baev added the pr:bug Something isn't working label Jul 31, 2026
@github-actions

Copy link
Copy Markdown

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Java – Pull request #1365 27m 9s Passed tests 2070 2 0 0 View
Allure Java GitHub actions run (2026-07-31T07:17:24.196Z) 27m 9s Passed tests 2070 2 0 0 View

@baev
baev merged commit 95c7f3a into main Jul 31, 2026
10 checks passed
@baev
baev deleted the fix-1359 branch July 31, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TestNG] Class-level <parameter> overrides from testng.xml are ignored — report shows the <test>-level value

3 participants