damianszczepanik / cucumber-reporting-jenkins

Java jenkins plugin for cucumber-jvm reporting
151 stars 12 forks source link

Add support for embedded media #135

Closed noymn closed 9 years ago

noymn commented 9 years ago

Cucumber allows to embed media into the scenario output (such as images). We should be able to also represent that into the reports.

Simon-Kaz commented 9 years ago

works for me, for webdriver tests i have the following:

if(scenario.isFailed()) { byte[] screenshot = driver.getScreenshotAs(OutputType.BYTES); scenario.embed(screenshot, "image/png"); }

damianszczepanik commented 9 years ago

Images are already supported. Update to the newest version if you have old one already.

noymn commented 9 years ago

I currently have a hook that takes screenshots on failure and specific calls to retrieve expected screenshots. I attach them to the scenario through the embed call but afterwards, on generation, the nice report does not show them.

I will try to update to the latest version.