Skip to content

Allure Report Shows Multiple Parent Suite Entries #2834

@DeepuK007

Description

@DeepuK007

Describe the Bug

I'm seeing multiple parentSuite labels in the Allure report even though I only specify it once in the test annotations. The issue occurs when I run my tests with the TestNG framework and generate the Allure report using Maven.

Steps to Reproduce

  1. Create a TestNG test class with @Test annotations.
  2. Use Allure.label("parentSuite", "SuiteName") in the test.
  3. Run the tests using Maven (mvn test).
  4. Generate the Allure report (allure generate reports/allure-results --clean -o reports/allure-report --single-file).

Expected Behaviour

The Allure report should show only one parentSuite label.

Screenshots or Additional Context

content of *results.json given below

{
"uuid": "c5fcb5ec-bbf5-4724-af6b-d75789436611",
"historyId": "721f8851ee28d7e4cf64dbc5bc4639dd",
"fullName": "tests.LoginTest.testLoginWithOtp",
"labels": [
{
"name": "package",
"value": "tests.LoginTest"
},
{
"name": "testClass",
"value": "tests.LoginTest"
},
{
"name": "testMethod",
"value": "testLoginWithOtp"
},
{
"name": "parentSuite",
"value": "tests.LoginTest"
},
{
"name": "suite",
"value": "Command line test"
},
{
"name": "subSuite",
"value": "tests.LoginTest"
},
{
"name": "thread",
"value": "31786@deepu-Precision-3571.main(1)"
},
{
"name": "framework",
"value": "testng"
},
{
"name": "language",
"value": "java"
},
{
"name": "feature",
"value": "Java Tests"
},
{
"name": "parentSuite",
"value": "Java Tests"
}
],
"links": [],
"name": "testLoginWithOtp",
"status": "passed",
"statusDetails": {
"known": false,
"muted": false,
"flaky": false
},
"stage": "finished",
"steps": [],
"attachments": [],
"parameters": [],
"start": 1735033299254,
"stop": 1735033317934
}

i have removed host name and other details are pasted above.

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-TestNG

What version of Allure Integration you are using?

2.24.0

What version of Allure Report you are using?

2.24.0

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions