Even after using CustomScreenshot function that's given in the gauge documentation we are unable to see the screenshots in the html reports. #2120
dhanushng88
started this conversation in
General
Replies: 2 comments 2 replies
-
@zabil @NivedhaSenthil @negiDharmendra Can you please assist me regarding the Above issue? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This feature is only available only if you upgrade Gauge to version to 1.4.1 and html plugin version to 4.1.2. Please try upgrading it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Code:
gauge.customScreenshotWriter = async function () {
const screenshotFilePath = path.join(process.env['gauge_screenshots_dir'],
screenshot-${process.hrtime.bigint()}.png
);await screenshot({ path: screenshotFilePath });
return path.basename(screenshotFilePath);
};
afterStep(async () => {
if (process.env.api_test_run === 'false') {
gauge.screenshot();
}
});
Gauge version: 1.2.1
Commit Hash: fa7918b
Plugins
html-report (4.0.12)
js (2.3.17)
json-report (0.3.6)
screenshot (0.1.0)
xml-report (0.2.
NoScreenShotsPresent.pdf
3)
Beta Was this translation helpful? Give feedback.
All reactions