mlison / protractor-jasmine2-screenshot-reporter

Protractor screenshot reporter for Jasmine2
https://www.npmjs.com/package/protractor-jasmine2-screenshot-reporter
MIT License
81 stars 79 forks source link

screenshot captured after executing afterEach() at failure time in the spec #124

Open SurapuRamaKrishna opened 6 years ago

SurapuRamaKrishna commented 6 years ago

Hi guys, I have enabled the following options in the protactor config.js var screenshotReporter = new HtmlScreenshotReporter({ showSummary: true, showQuickLinks: true, dest: 'e2e/test-results/', cleanDestination: false, reportOnlyFailedSpecs: false, captureOnlyFailedSpecs: true, filename: 'E2ETestResults.html' });

now i am able to get screenshots on failure. But if my spec file contains afterEach() then the screenshot is captured after executing the afterEach() but not at the failure time.

is there any posibility to capture the screenshot right at the failure time before executing afterEach() in the spec file