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

Report issues with TestNG 7.0.0 or 7.1.0 #234

Open
ValorHeart opened this issue Feb 24, 2020 · 2 comments
Open

Report issues with TestNG 7.0.0 or 7.1.0 #234

ValorHeart opened this issue Feb 24, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@ValorHeart
Copy link

Difido works great with TestNG 6.14.3, but after upgrading TestNG to 7.0.0 or 7.1.0 there is an issue:
While there is more than one "Test" in TestNG xml file, difido reports are splitting and multiplying the tests.

TestNG suite structure that used to work:
`

<test name="Test1">
    <parameter name="testedApp" value="Test1"/>
    <groups>
        <run>
            <include name="Test1"/>
            <exclude name="PendingReview"/>
            <exclude name="Unstable"/>
        </run>
        <dependencies>
            <!-- Service Health Check -->
            <group name="Test1" depends-on="ServiceHealthCheck"/>
        </dependencies>
    </groups>
    <packages>
        <package name="source.auto.tests.api.*"/>
    </packages>
    <classes>
        <!-- Service Health Check -->
        <class name="source.auto.tests.api.ServiceHealthCheckTest"/>
    </classes>
</test>

<test name="Test2">
    <parameter name="testedApp" value="Test2"/>
    <groups>
        <run>
            <include name="Test2"/>
            <exclude name="PendingReview"/>
            <exclude name="Unstable"/>
        </run>
        <dependencies>
            <!-- Service Health Check -->
            <group name="Test2" depends-on="ServiceHealthCheck"/>
        </dependencies>
    </groups>
    <packages>
        <package name="source.auto.tests.api.*"/>
    </packages>
    <classes>
        <!-- Service Health Check -->
        <class name="source.auto.tests.api.ServiceHealthCheckTest"/>
    </classes>
</test>
` will result with the following report: ![image](https://user-images.githubusercontent.com/61405630/75134763-eead7280-56e7-11ea-9c71-47f12bcff32e.png)

The same exactly suite, but this time with only one test:
`

<test name="Test1">
    <parameter name="testedApp" value="Test1"/>
    <groups>
        <run>
            <include name="Test1"/>
            <exclude name="PendingReview"/>
            <exclude name="Unstable"/>
        </run>
        <dependencies>
            <!-- Service Health Check -->
            <group name="Test1" depends-on="ServiceHealthCheck"/>
        </dependencies>
    </groups>
    <packages>
        <package name="source.auto.tests.api.*"/>
    </packages>
    <classes>
        <!-- Service Health Check -->
        <class name="source.auto.tests.api.ServiceHealthCheckTest"/>
    </classes>
</test>
` will result with the following report: ![image](https://user-images.githubusercontent.com/61405630/75134800-0a187d80-56e8-11ea-87db-83612f0b2f8d.png)
@ValorHeart ValorHeart changed the title Report issues with TestNG 7.1.0 Report issues with TestNG 7.0.0 or 7.1.0 Feb 24, 2020
@ValorHeart
Copy link
Author

BTW, I'm Adi from HP Indigo

@itaiag
Copy link
Contributor

itaiag commented Nov 9, 2020

Hi Adi.
It is true. There are some breaking changes in TestNG 7. Adding support for it is in the project milestone.

@itaiag itaiag self-assigned this Nov 9, 2020
@itaiag itaiag added the bug label Nov 9, 2020
@itaiag itaiag added this to the 3.1.00 milestone Nov 9, 2020
@itaiag itaiag modified the milestones: 3.1.00, 3.1.01 Jul 27, 2022
@itaiag itaiag modified the milestones: 3.1.01, 3.1.02 Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants