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
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