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

Screenshot is not working (Unable to integrate screenshot) #35

Closed jsaujla closed 7 years ago

jsaujla commented 7 years ago

I have captured the screenshot and get that saved in output folder. Then I wrote below line of code to integrate that screenshot with Extent Cucumber report. It seems integrated successfully but not able to see (open) screenshot. Reporter.addScreenCaptureFromPath("absolute screenshot path"); cucumberextent

email2vimalraj commented 7 years ago

@JaspalAujla : What is the path of the screenshot that you have generated?

jsaujla commented 7 years ago

Actually, I worked with Maven project, it was not working when I directly gave the path, like below (but usually, this way works with Maven project): Reporter.addScreenCaptureFromPath("output\screenshot01.png");

However, now it is working when I get the path with system property, like below Reporter.addScreenCaptureFromPath(System.getProperty("user.dir")+"\output\screenshot01.png);

You can close this issue.

email2vimalraj commented 7 years ago

@JaspalAujla : Thanks