Currently I'm triggering my automation tests in the cloud using a Ubuntu instance.
The Ubuntu instance has a Jenkins instance running and also Selenium Hub and Node. It seems the screenshot images dont get saved within the builds\3\cucumber-html-reports\embeddings on a ubuntu system however on a windows system this issue does not exist.
I have currently added the below logic to capture and attach images to the Jenkins Cucumber reports however currently the images are not getting attached to the reports:
@After
public void after(Scenario scenario) {
if (scenario.isFailed()) {
try {
WebDriver augmentedDriver = new Augmenter().augment(getDriver());
byte[] s = ((TakesScreenshot)augmentedDriver).getScreenshotAs(OutputType.BYTES);
scenario.embed(s, "image/png");
Example Report (Generated in Jenkins), please note the images are getting saved and attached to the reports when running the tests locally.
