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

How to separate extent report per suite #339

Open
skhandekar1 opened this issue Dec 20, 2021 · 0 comments
Open

How to separate extent report per suite #339

skhandekar1 opened this issue Dec 20, 2021 · 0 comments

Comments

@skhandekar1
Copy link

skhandekar1 commented Dec 20, 2021

I currently have the following code to generate the class and the @tests report

public static synchronized ExtentTest startParentTest(String testName) {
		parent = extent.createTest(testName, "Hello my parents name is");
		extentTestMap.put((int) (long) (Thread.currentThread().getId()), parent);
		return parent;
	}
	
	public static synchronized ExtentTest startChildTest(String testName, String desc) {
		ExtentTest child = parent.createNode(testName, "Hello my name is");
		extentTestMap.put((int) (long) (Thread.currentThread().getId()), child);
		return child;
	}

This gives me the following:
image

Problem is, if i am running two suites back to back using the suites TestNG.xml, as follows:

<suite name="TP397">   
    <suite-files>
        <suite-file path="./src/test/java/com/tp/tp397_v2/Procedure1/TP397_procedure1.xml"> </suite-file>
        <suite-file path="./src/test/java/com/tp/tp397_v2/Procedure2/TP397_procedure2.xml"> </suite-file>
    </suite-files>
</suite>

I see the suites lumped together in the same left hand column, as follows:

image

Is there a way to separate out the classes from different suites?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant