You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
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?
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
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
The text was updated successfully, but these errors were encountered: