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
- Create a TestNG test class with
@Test annotations.
- Use
Allure.label("parentSuite", "SuiteName") in the test.
- Run the tests using Maven (
mvn test).
- 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
Describe the Bug
I'm seeing multiple
parentSuitelabels 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
@Testannotations.Allure.label("parentSuite", "SuiteName")in the test.mvn test).allure generate reports/allure-results --clean -o reports/allure-report --single-file).Expected Behaviour
The Allure report should show only one
parentSuitelabel.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