Screenshot not attaching to the report
rahulbommanaboina opened this issue · comments
Hi Team ,
I am generating cucumber.json report after running the Runner class using cucable plugin . but when i see the generated report i dont see the screenshot attached.
below is the code used for attaching screenshot :
final byte[] screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES);
scenario.attach(screenshot, "image/png","testfileNameToBeDisplayed");
i can see the attachment details in cucumber.json file as well , attached for reference.
Version of plugin:
com.trivago.rta
cluecumber-report-plugin
2.3.4
I see the drop down of cucumber hooks and screenshot is seen , please ignore thank you