extentreports-java
extentreports-java copied to clipboard
Unable to add feature description to the BDD style report
Summary
Unable to add Feature description to the Extent Report at Feature level test.
Expected Behavior
User should be able to add Feature description to the BDD style report.
Current Behavior
User is unable to add Feature description
Sample
@Test
public void test1() throws ClassNotFoundException {
ExtentReports extentReports = new ExtentReports();
File reportFileLocation = new File("ExtentReport.html");
ExtentHtmlReporter extentHtmlReporter = new ExtentHtmlReporter(reportFileLocation.getName());
extentHtmlReporter.config().setChartVisibilityOnOpen(true);
extentHtmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);
extentHtmlReporter.config().setDocumentTitle("Test Tile");
extentHtmlReporter.config().setReportName("Test Report");
// extentHtmlReporter.setAppendExisting(true);
extentReports.attachReporter(extentHtmlReporter);
ExtentTest feature = extentReports.createTest(new GherkinKeyword("Feature"), "Feature", "Some feature description");
feature.assignCategory("Some Feature Tag");
ExtentTest scenario = feature.createNode(new GherkinKeyword("Scenario"), "Test Scenario 1", "Some scenario description");
scenario.assignCategory("Some Scenario Tag");
scenario.assignCategory("Some scenario tag 2");
ExtentTest step = scenario.createNode(new GherkinKeyword("Given"), "some step");
extentReports.flush();
}
Environment Details
- Extent report Version used: 3.1.3
- Operating System and version: Windows 7
- JDK Version: Java 8