Closed akhiljosephk closed 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.
ExtentX is no longer supported. Please use Klov.
Even after upgrading to Klov the result is the same. Issue is occurring when Scenario Outline is used.
This issue is similar to this closed issue
@anshooarora: Can you please help here
I am able to reproduce this. Its an issue with Klov's templating. Will release the fix with version 0.1.0.
Klov issue: https://github.com/anshooarora/klov/issues/34
Fixed with version 0.1.0.
@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!
@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.
The local report which gets generated has all scenario steps with logs and screenshots
.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
"+e.getMessage());
}
}