mlison/protractor-jasmine2-screenshot-reporter

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

Opened this issue · 0 comments

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