email2vimalraj / CucumberExtentReporter

A plugin to generate the cucumber jvm custom html report using ExtentsReport
http://www.vimalselvam.com/cucumber-extent-reporter/
MIT License
58 stars 74 forks source link

Scenario Steps are not displayed with logs and Screenshots in when Scenario Outline is Used #84

Closed akhiljosephk closed 6 years ago

akhiljosephk commented 6 years ago

The local report which gets generated has all scenario steps with logs and screenshots 2018-02-09_11h18_16 .But the same report when viewed in ExtentX has only Scenario Outline Example section details alone(Refer Screenshot).

Below given is the code snippet:

@BeforeClass public static void create_ExtentReport_properties() { try { ExtentProperties extentProperties = ExtentProperties.INSTANCE; extentProperties.setExtentXServerUrl(EXTENT_URL); extentProperties.setProjectName("Test"); extentProperties.setReportPath("output/extent.html"); }catch (Throwable e){ logger.info("Exception in Before Class, proceeding with test execution "+e.getMessage()); } }

@AfterClass public static void teardown() { try { Reporter.loadXMLConfig(new File("src/test/resources/extent-config.xml")); Reporter.setSystemInfo("user", System.getProperty("user.name")); Reporter.setSystemInfo("os", "Windows"); Reporter.setTestRunnerOutput("Test Execution result for Test Project"); Reporter.assignAuthor(AUTHOR); }catch (Exception e){ logger.info("Exception in After Class 2018-02-09_11h09_08 "+e.getMessage()); } }

akhiljosephk commented 6 years ago

When Scenario Outline is used, steps and screenshots are not displayed in ExtentX,whereas when Scenario is used steps are displayed but still Screenshots are missing.

anshooarora commented 6 years ago

ExtentX is no longer supported. Please use Klov.

akhiljosephk commented 6 years ago

Even after upgrading to Klov the result is the same. Issue is occurring when Scenario Outline is used.

2018-02-28_14h37_35

akhiljosephk commented 6 years ago

This issue is similar to this closed issue

akhiljosephk commented 6 years ago

@anshooarora: Can you please help here

anshooarora commented 6 years ago

I am able to reproduce this. Its an issue with Klov's templating. Will release the fix with version 0.1.0.

anshooarora commented 6 years ago

Klov issue: https://github.com/anshooarora/klov/issues/34

anshooarora commented 6 years ago

Fixed with version 0.1.0.

baraths84 commented 6 years ago

@akhiljosephk @anshooarora @email2vimalraj can you pls help point me to reference sample project using Klov with Junit,Cucumber. 1) I am following the steps you mentioned here https://github.com/anshooarora/klov/issues/26 unable to get it working. I am new to Klov/extentreports and unable to pipe data to Klov..

2)ExtentCucumberFormatter formatter =new ExtentCucumberFormatter(file); how is the formatter used before attaching to the reporter.

Thanks in advance!

email2vimalraj commented 6 years ago

@baraths84 : We have the klov support added natively in the Cucumber Extent reporter. Kindly update the version to 3.1.0 and start using it. Thanks.