allure-framework / allure-java

Allure integrations for Java test frameworks
Apache License 2.0
353 stars 223 forks source link

TestNG - Mutiple Test are there in the xml file ..TC count not displayed in the report properly #576

Open anitachristobel opened 3 years ago

anitachristobel commented 3 years ago

Describe the bug In the TestNG xml.. I have two test suite. my TestNG report shows the no.of test cases properly.In Allure report of the test suite cases are missing. The json file report is generated in allure-reports

To Reproduce <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">

Expected behavior The total no of testcase should be 5 . each class have one method. But in allure only 4 is displayed .Test1 results are not displayed. I see a simillar pattern.If i use the same methods in differents test .. the count is not displayed properly Screenshots If applicable, add screenshots to help explain your problem.

image

Additional context Add any other context about the problem here.

itkhanz commented 1 year ago

This issue arises because the <class name="class1.method1"> in test1 and test2 have same tests so Allure counts them as 1 test and put the other test result in Retries tab. Yet to see if the bug is fixed or not.