Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScreenShot is not saving in the screenshot folder - Mochawesome-screenshots #383

Open
RaviThippana opened this issue Oct 12, 2022 · 1 comment

Comments

@RaviThippana
Copy link

RaviThippana commented Oct 12, 2022

I am trying to add screen shot when test fail happens in playwright using Mochawesome-screenshots.
Below is my snippet of .mocharc.js
module.exports = {
reporter: "mochawesome-screenshots",
"reporter-option": [
"reportDir=Automation_Reports",
"reportName=" + ReportCustomFolderName + "",
"overwrite=true",
"reportTitle=Automation Test Report",
"shortScrFileNames=true",
"takePassedScreenshot=false",
"clearOldScreenshots= true",
"screenshotsFolder=screenshots",
],
};
But no screenshots are added in the screenshot folder. And my report is looking like below

Screenshot
I am using below versions..
"dependencies": {
"mocha": "^10.0.0",
"mochawesome-report-generator": "^6.2.0",
"mochawesome-screenshots": "^1.7.3",
"playwright": "^1.27.0",
},
"devDependencies": {
"mochawesome": "^7.1.3"
}

Please advise. Thanks in advance

@joakim-sch
Copy link

Your problems seems to be related to the url to the screenshot. If you look at the broken image url in the report, where is it pointing too? Where is it actually stored and is the url pointing to the correct location?

Also, I consider posting this issue in the mochawesome-screenshot issues page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants