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

Allure Report Shows Multiple Parent Suite Entries #2834

Open
1 task done
DeepuK007 opened this issue Dec 24, 2024 · 0 comments
Open
1 task done

Allure Report Shows Multiple Parent Suite Entries #2834

DeepuK007 opened this issue Dec 24, 2024 · 0 comments
Labels
triage type:bug Something isn't working

Comments

@DeepuK007
Copy link

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": "[email protected](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
@DeepuK007 DeepuK007 added triage type:bug Something isn't working labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant