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

Extent Report 3.1.2 Customized Summary report #1101

Open
raghunnandan opened this issue Jul 27, 2018 · 1 comment
Open

Extent Report 3.1.2 Customized Summary report #1101

raghunnandan opened this issue Jul 27, 2018 · 1 comment

Comments

@raghunnandan
Copy link

Summary

I am using extent report 3.1.2 to generate Automation test summary report in Cucumber framework . I am stuck up in implement couple of customized requests from Client .

Client Request : Hierarchy would be Suite ( Left Side of the page in the report)--> Parent (Right side of the page in the report )--> Child ( under Parent )--> Grand Child (Under Child)

Current Behavior

I am able to create Execution results in report in below manner.
Test name (Parent )--> Child (validation points)--> Grand Child (Steps under validation points)

Please let me know can we Implement in extent report ? . I tried few things but facing issue . Please help me know on this.

reportpblm

Thanks in Advance.
Raghunandan N

@foursyth
Copy link

See here: https://github.com/email2vimalraj/CucumberExtentReporter/blob/master/src/main/java/com/vimalselvam/cucumber/listener/ExtentCucumberFormatter.java

You can modify this implementation to add the suiteTestThreadLocal as well:

public void feature(Feature feature) {
	featureTestThreadLocal.set(getExtentReport().createTest(com.aventstack.extentreports.gherkin.model.Feature.class, feature.getName()));
	ExtentTest test = featureTestThreadLocal.get();

	for (Tag tag : feature.getTags()) {
		test.assignCategory(tag.getName());
	}
}

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

No branches or pull requests

2 participants