Thanks @Naveen AutomationLabs. We could gain much knowledge on Cypress and related topics. Could you please make more videos on Cypress API and also on Framework part
Hi Naveen, thank you for this video it is really helpful and very well explained. I have a request if you could share a video, where we send a email along with report attached.
One big limitation in Cypress report I can see is that it only gets generated after all specs ran, we can not see the reports in between the execution. Let's say you have a regression suite contains many specs and would like to see are they running fine or not we can see only at the last and in that way let's say something goes wrong then we have waisted that much amount of time waiting for it to get complete of execution, just only one way of monitoring console for pass and fail but observing report is satisfying.
Hi Naveen, very good explanation. Thank you! Is there a good way to clean reports too and add that to the script ? I tried and something not right with how I have done the cleanup. It is throwing me error and exists. Could you pls showcase with example if possible ?
when i run the command npm run merge , i am getting this error bro , can you please check this once. ERROR: Failed to merge reports SyntaxError: cypress/reports/output.json: Unexpected end of JSON input at JSON.parse () at C:\D Drive\Test\Cypress API Automation\TestProject ode_modules\mochawesome-merge ode_modules\jsonfile\index.js:33:18 at C:\D Drive\Test\Cypress API Automation\TestProject ode_modules\graceful-fs\graceful-fs.js:123:16 at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:73:3)
Hi Naveen , Can you please create a video or comment here to change the mochawesome merge report browser tab title. currently it is "Mochawesome Report" title. For Signle Report i am able to change the title but while merging it is displaying the "Mochawesome Report" only
Hi naveen, i am unable to merge the reports getting the below errors npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cypressautomation@1.0.0 combine-reports script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:
I am getting below error after executing npm run merge SyntaxError: cypress/reports/output.json: Unexpected end of JSON input at JSON.parse () at D:\ ode_modules\jsonfile\index.js:33:18 at D:\ ode_modules\graceful-fs\graceful-fs.js:123:16
Hii..nice video..but in command line browser was not opened directly run in command line by default then show the results. can you please tell me the solution for that?
Hi Naveen, Thanks for the video and it was good learning. I am working on Windows OS and I am executing 2 specs with a total of 7 scripts. But with the given command it's giving me an error. "merge": "mochawesome-merge .\\cypress\ esults\\webshop\\*.html > .\\cypress\ esults\\webshop\\output.html" "merge": "mochawesome-merge cypress esults\webshop\*.html > cypress esults\webshop\output.html" "generate": "marge cypress/results/webshop/output.html --reportDir ./ --inline" Please can you help me with the path issue for Windows OS. Thanks in advance
Hey Naveen sir while executing "npm run merge" command on terminal I am getting below error > cypress_practice@1.0.0 merge C:\Mayank\Cypress_Code > mochawesome-merge cypress/reports/*.json > cypress/reports/output.json ERROR: Failed to merge reports SyntaxError: cypress/reports/output.json: Unexpected end of JSON input at JSON.parse () at C:\Mayank\Cypress_Code ode_modules\jsonfile\index.js:33:18 at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3) would you please help me to resolved above issue. I am using Window 10 OS
@@simranarora9837 Hi Simran ,no reply so far , but I got one work around , if you using Jenkins and running with pipeline job then we can show Run report in Jenkins it self and a simple link can be shared with team for reporting
@@MohanRaj-by9us , Watch How I fix the problem "Execute Cypress tests in jenkins with Mochawesome reports" lnkd.in/gDdD9xM czcams.com/video/KrrO6Jg8_ZM/video.html A medium page for end set up kailash-pathak.medium.com/execute-cypress-test-case-in-jenkin-with-integrating-mochawesome-report-ca5e91a5afc4
Thank you so much
Thanks @Naveen AutomationLabs. We could gain much knowledge on Cypress and related topics. Could you please make more videos on Cypress API and also on Framework part
Thanks for the awesome video.One request...can you please continue the DS and algo series videos?
hello, Pooja have you tried the above video? Actually, I am getting an error while merging .json file.
@@mayankjain9941 try out the below for merging -
"merge": "mochawesome-merge cypress/reports/*.json -o cypress/reports/final.json",
@@appansingharoy491 I got the above solution a 2 month back only. Anyway thanks for your comments
Hi Naveen, great video Buddy, Is there a away to add screenshots to the report for FAILED Test Cases?
Use Cypress Dashboard Feature.
Hi Naveen, thank you for this video it is really helpful and very well explained. I have a request if you could share a video, where we send a email along with report attached.
Hi Naveen, Thanks for the information covered. How we can remove those codes and variables from tc and add cy.logs instead.pls take a look into this 🙏
One big limitation in Cypress report I can see is that it only gets generated after all specs ran, we can not see the reports in between the execution. Let's say you have a regression suite contains many specs and would like to see are they running fine or not we can see only at the last and in that way let's say something goes wrong then we have waisted that much amount of time waiting for it to get complete of execution, just only one way of monitoring console for pass and fail but observing report is satisfying.
after imlimentation my test are failed & cypress' is not recognized as an internal or external command,
operable program or batch file.
Hi Naveen, very good explanation. Thank you! Is there a good way to clean reports too and add that to the script ? I tried and something not right with how I have done the cleanup. It is throwing me error and exists. Could you pls showcase with example if possible ?
when i run the command npm run merge , i am getting this error bro , can you please check this once.
ERROR: Failed to merge reports
SyntaxError: cypress/reports/output.json: Unexpected end of JSON input
at JSON.parse ()
at C:\D Drive\Test\Cypress API Automation\TestProject
ode_modules\mochawesome-merge
ode_modules\jsonfile\index.js:33:18
at C:\D Drive\Test\Cypress API Automation\TestProject
ode_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:73:3)
just replace > sign with -o and it should work
Hi Sir. Request to please make a video for validating data in pdf using cypress Automation. Thankyou
Hi Naveen, Can you please create a video if possible about how to attach mochawesome report as attachment to mail via Jenkins.
Hi Naveen , Can you please create a video or comment here to change the mochawesome merge report browser tab title. currently it is "Mochawesome Report" title. For Signle Report i am able to change the title but while merging it is displaying the "Mochawesome Report" only
Hi naveen, i am unable to merge the reports getting the below errors
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cypressautomation@1.0.0 combine-reports script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
you need to execute this command under the folder path were cypress folder or testcases are present
Sir is there any way to send this report in email ? Like if run my test suite then automatically report attached to email and send
Hi Naveen, I am unable to join your Telegram group - link provided above.. Please provide valid lin to join your telegram group
I am getting below error after executing npm run merge
SyntaxError: cypress/reports/output.json: Unexpected end of JSON input
at JSON.parse ()
at D:\
ode_modules\jsonfile\index.js:33:18
at D:\
ode_modules\graceful-fs\graceful-fs.js:123:16
just replace > sign with -o and it should work
Report Folder is not created in my folder any solution ?
Any idea on how I can then export these if I run the tests via a CI tool
Hii..nice video..but in command line browser was not opened directly run in command line by default then show the results. can you please tell me the solution for that?
I am getting the error failed to merge reports
Hi Naveen,
Thanks for the video and it was good learning. I am working on Windows OS and I am executing 2 specs with a total of 7 scripts. But with the given command it's giving me an error.
"merge": "mochawesome-merge .\\cypress\
esults\\webshop\\*.html > .\\cypress\
esults\\webshop\\output.html"
"merge": "mochawesome-merge cypress
esults\webshop\*.html > cypress
esults\webshop\output.html"
"generate": "marge cypress/results/webshop/output.html --reportDir ./ --inline"
Please can you help me with the path issue for Windows OS.
Thanks in advance
I am struggling to download a PDF file for two months, could you please help me please.
Hey Naveen sir while executing "npm run merge" command on terminal I am getting below error
> cypress_practice@1.0.0 merge C:\Mayank\Cypress_Code
> mochawesome-merge cypress/reports/*.json > cypress/reports/output.json
ERROR: Failed to merge reports
SyntaxError: cypress/reports/output.json: Unexpected end of JSON input
at JSON.parse ()
at C:\Mayank\Cypress_Code
ode_modules\jsonfile\index.js:33:18
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
would you please help me to resolved above issue. I am using Window 10 OS
Hello, i am getting the same issue. Were you able to resolve it? if yes, would you please share the solution. Thanks In advance
the .json files you have should not be blank or contains 0 result
"merge": "mochawesome-merge cypress/reports/*.json -o cypress/reports/output.json", USE THIS WAY -0
Hi Naveen
Is possible to send this mocha report in email and recipient can open in their desktop and see ?
Any help ?
Hi Animesh, did you receive any solution for your question? Actually i am having the same query as of now.
@@simranarora9837 Hi Simran ,no reply so far , but I got one work around , if you using Jenkins and running with pipeline job then we can show Run report in Jenkins it self and a simple link can be shared with team for reporting
when tests pass, NPM exits without an error message
when tests fail you see
npm ERR! code ELIFECYCLE
npm ERR! Exit status 3
Can anyone help
Hi, Myself also facing same problem. Did you identify any solution? Please let me know.
@@MohanRaj-by9us ,
Watch How I fix the problem "Execute Cypress tests in jenkins with Mochawesome reports"
lnkd.in/gDdD9xM
czcams.com/video/KrrO6Jg8_ZM/video.html
A medium page for end set up
kailash-pathak.medium.com/execute-cypress-test-case-in-jenkin-with-integrating-mochawesome-report-ca5e91a5afc4
Hi Naveen, when using merge command getting error as unexpected end if json.can you suggest fix.
Hi, I am also facing the same issue while executing merge command. Did you find any solution? please let me know.
@@Vinni-Dhruva did u get fixed?
did u get fixed? iam also facing the same
Hi I am also facing same issue . if anyone fixed this please mention in comment section
@@venkataharishutpala8985 were you able to fix this issue ?
"run":"npx cypress run",
"merge": "mochawesome-merge cypress/reports/*.json -o cypress/reports/output.json",
"generate_mochawesome_report": "marge cypress/reports/output.json --reportDir ./ --inline",
"final_report": "npm run merge && npm run generate_mochawesome_report"