extent-framework / extentreports-testng-adapter

TestNG Adapter for Extent Framework
http://extentreports.com/docs/versions/4/java/testng.html
Apache License 2.0
50 stars 14 forks source link

Feature : Screen Shot when scenario failed #4

Open Dushyant0902 opened 5 years ago

Dushyant0902 commented 5 years ago

https://stackoverflow.com/questions/56060647/extentreports-testng-adapter-generate-html-report-with-screenshot-if-test-fail

Apologies for adding it here as well, this is not a bug, I don't know how to create a report with screen shot attached. I am using testng and cucumber framework. I am also running my test in parallel.

Can you please help me ?

anshooarora commented 4 years ago

Is this pertaining to testng or cucumber adapter?

QAthulhu commented 4 years ago

I'm also looking for this for TestNG. Current work around is I created a local copy of the test listener and added code in onTestFailure to take a screenshot

sseenivasan89 commented 4 years ago

Hi, I too looking for the same in TestNG, in Cucumber i was able to attach the screenshot in report successfully i just tried to capture failure in @After method to capture and append to report but no luck, please help on this. Thanks