Thanks for sharing this video.. this is very much useful .. both positive and negative flows worked for me. Thanks again.. keep posting such amazing things..
just a question: how did you configure cypress to run the "posttest" script automatically after all the specs have run? I have been searching for this on the web but could not find a good answer. thank you
I am currently having an issue where if I email the entire reports folder to someone , they are able to view the reports but not the failed screenshots. I tried base64 encoding with readFileSync() to embed the screenshot into the report but for some reason its not working inside index.js file . Any idea ?
Thanks a lot for this video. Really helpful. However, I am facing an issue that the image attached in HTML is shown broken even though it is proper in the screenshots folder. I've verified that the path provided for the screenshot to be attached in the index.js is correct. Can you please tell the resolution for this?
Hi, In My project I have configured a Cucumber HTML Report but am facing on challenges, Unable to attach the passed screenshot in the report. Could u please help us please?
Thanks for your lesion, but I can't attach picture when I use the normal path :( when I using the absolute path as string like `D:/../..' it's ok and and can attach the picture. How can I use the normal path to attach a picture? Thank you
Hello, I tried running this and I encounter an issue wherein the script for combine and generate reports is not running after the cli test, there is no error being display before, during and after test
Hi Vinod, Thanks for the video. I was able to setup mochawesome reporter. I had an observation of the weird behaviour of the reporter tool. If all test cases passed then the report is not generated. You have to intentionally fail 1 test script for the report to be generated. After that you fix the fail test case and re-run, you will see the report generated for both the runs. Can you please re-create the above-mentioned scenario and confirm if something is to be fixed. Regards, Anand
@@mailanandteerth I am also facing the same issue. Single (i.e., merged) html report doesn't generate when all the test cases pass. (Only the respective mochawesome.json gets generated inside mocha folder.) But if I intentionally fail a test case, only then the Single (merged) html report gets generated inside mochareports folder. Were you guys able to find any fix for this problem? Please let me know
Please check the description of this video. In there you would find the GitHub link. From there you can get code for everything I'm doing in this playlist
Please check the description of this video. In there you would find the GitHub link. From there you can get code for everything I'm doing in this playlist
Excellent work I can see you have put in lot of effort to gather all required things to generate report with screenshot..
Glad you liked it
Thanks for sharing this video.. this is very much useful .. both positive and negative flows worked for me. Thanks again.. keep posting such amazing things..
just a question: how did you configure cypress to run the "posttest" script automatically after all the specs have run? I have been searching for this on the web but could not find a good answer. thank you
Thank you :) Can you please share a video or blog which clearly explains the differences between mochawesome and allure reports from cypress front.
I am currently having an issue where if I email the entire reports folder to someone , they are able to view the reports but not the failed screenshots. I tried base64 encoding with readFileSync() to embed the screenshot into the report but for some reason its not working inside index.js file . Any idea ?
Incredible video and work !!
Glad you liked it
Thanks a lot for this video. Really helpful. However, I am facing an issue that the image attached in HTML is shown broken even though it is proper in the screenshots folder. I've verified that the path provided for the screenshot to be attached in the index.js is correct. Can you please tell the resolution for this?
Hi,
In My project I have configured a Cucumber HTML Report but am facing on challenges, Unable to attach the passed screenshot in the report. Could u please help us please?
Thanks for your lesion, but I can't attach picture when I use the normal path :( when I using the absolute path as string like `D:/../..' it's ok and and can attach the picture. How can I use the normal path to attach a picture? Thank you
Ultimately the attachment is used by html page. So relative path should be mentioned from html file location to make it work.
@@QABoxLetsTest Thank you so much, I'm so appreciate that
Hello,
I tried running this and I encounter an issue wherein the script for combine and generate reports is not running after the cli test, there is no error being display before, during and after test
I have created videos for reports on Jenkins and Azure DevOps. Please check those once.
Hi Vinod,
Thanks for the video. I was able to setup mochawesome reporter.
I had an observation of the weird behaviour of the reporter tool.
If all test cases passed then the report is not generated. You have to intentionally fail 1 test script for the report to be generated. After that you fix the fail test case and re-run, you will see the report generated for both the runs.
Can you please re-create the above-mentioned scenario and confirm if something is to be fixed.
Regards,
Anand
Weird, you might have setup the scripts wrongly. I tried it successfully with both cases, all passing and some failing.
@@QABoxLetsTest Use typescript and check. May be I missed in my earlier question. But I am 100% sure.
It's not working when all test cases pass.
Show me your scripts once and I would also double check it.
@@mailanandteerth I am also facing the same issue. Single (i.e., merged) html report doesn't generate when all the test cases pass. (Only the respective mochawesome.json gets generated inside mocha folder.)
But if I intentionally fail a test case, only then the Single (merged) html report gets generated inside mochareports folder.
Were you guys able to find any fix for this problem? Please let me know
Thanks
Can u please add complete report code. I am not able see command at 8.19..scrips are not scrolled to right so what is parameter for combine report
Please check the description of this video. In there you would find the GitHub link. From there you can get code for everything I'm doing in this playlist
Is there way to get multiple-cucumber-html-reporter in Cypress
I never did it myself but I find this link
github.com/TheBrainFamily/cypress-cucumber-preprocessor/issues/280
@@QABoxLetsTest thank you :)
ERROR: Failed to merge reports giving error while merging files
Please refer to the GitHub repo for this tutorial in the description of the video.
Please give me ur complete code, it is not visible properly
Please check the description of this video. In there you would find the GitHub link. From there you can get code for everything I'm doing in this playlist
when I run run test it returns "Error: no test specified"
Sure, this happens when integration folder is empty. Check your cypress.json or the config file for the same.
@@QABoxLetsTest yes, I created the CommandLineSuite folder and put some tests
Please check your config because this is standard cypress error which pops up when Cypress fails to find test files.
@@QABoxLetsTest Now this.
> mochawesome-merge cypress/reports/mocha/*.json > cypress/reports/mochareports/report.json
ERROR: Failed to merge reports
Error: Pattern cypress/reports/mocha/*.json matched no report files
I've posted my code in the GitHub itself.you can refer to the same. All your errors are related with how you have setup your project.