Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

How to show grouping of Test methods in Extent reports based on TEST groups #915

@Mayukh-saha

Description

@Mayukh-saha

Summary

Please refer to the sample testng.xml file below.

`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Main Test Suite" verbose="2">
    <test name="Sample registration tests">
        <classes>
            <class name="com.Practice.PracticeTest1" />
        </classes>
    </test> 
    <test name="Sample login tests">
        <classes>
            <class name="com.Practice.PracticeTest2" />
        </classes>
    </test> 
</suite>`

The file contains 2 Test Groups named Sample registration tests and Sample login tests and under that 1 test class in each group. Now I have configured Extent reports for my project and when running the reports are coming fine. But all the test methods in the 2 classes are coming sequentially.

I want to show the test methods grouped under the Test groups. Like all the methods of PracticeTest1 test class will come under Sample registration tests Test group and like that.

Screenshots


extent_report

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions