Skip to content

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

Open

Description

@anitachristobel

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

<test name "Test1">
    <classes>
        <class name="class1.method1">
        </class>
    </classes>
</test>

<test name ="Test2">
    <classes>
        <class name="class4.t3"/>
        <class name="class3.sample3"/>
        <class name="class2.test1"/>
        <class name="class1.method1"/>
    </classes>
</test>

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.

Activity

  1. itkhanz commented on Dec 28, 2022

    @itkhanz

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions