Very good video just a small correction if you can add allure "open allure-report" it works and we don't need any extra servers to run. just update the below line and all the magic is already written by QA box team "allure:report": "allure generate allure-results --clean -o allure-report && allure open allure-report",
Thanks, I'll check. But I believe this extra info will also spin up small web server, that will serve your report. So, in nut shell , it is a server report which runs on some kind of web server. So your info will save installing an extra extension in vscode but problem is how would you reopen an already generated report, let's say after system reboot because the web server would be alive until the report is open. So, you gotta run a command to open the report again since a server has to be started to show allure report. These are my thoughts but thanks once again for reaching out and sharing this info.
@@QABoxLetsTest yeah you are right the instance will be saved only one time and the previous report cant be opened, However maybe this can be hosted in a server and the results could be saved for each build and the build history can also be used in allure report
Thanks for having such a detailed descriptive video. I am able to generate allure reports, but i am facing a couple of issues - 1. if in the cypress.json file I have some variables related to ""integrationFolder"" or "pageTimeOut", it does not generate allure-results folder. if I keep cypress.json file blank, then the files in allure-results are generated. How can i fix this? 2.if I use the command as cypress run --env allure=true --reporter mocha-allure-reporter , allure-report is generated but it does not have snapshot or videos embedded in the report. How can i achieve this? Any help will be appreciated. Thanks!!
Could you please make a video on how to add common methods in cypress[i.e. getText, getAttribute,Click, handlingDropdown... ] awaiting for this video and all your videos are awesome😊👏
Hi , Thanks for amazing the vedio. Can you please tell what should be the command for mac for clearing allure-results folder each time we run test.- allure:clear: `if exist allure-results rmdir /q /s allure-results && if exist allure-report rmdir /q /s allure-report && if exist cypress\screenshots rmdir /q /s cypress\screenshots && if exist cypress\videos rmdir /q /s cypress\videos
Hi I have tried allure report i can get the report with pass or fail message but in the report execution i am getting "No information about test execution is available." how to configure our run log and assertions with our report .Please help me with this.
Thank for your video, this lession is very helpfull for me. I followed the instructions on the video, but my report didn't have any attachment like video or picture. Could you kindly tell me why? Thanks a lot.
Thanks again :) Can you please share the command to launch the chrome browser while executing instead of headless mode? I did try the option npm cypress run --browser chrome but it din't work.
You want headless or headed? For headless you use --headless For headed you use --headed Please watch this to learn all the configurations ruclips.net/video/k6O-pK__6tw/видео.html
i am have this problem and is not posible to execute the test------npm ERR! allurecy@1.0.0 allure:clear: `if exist allure-results rmdir /q /s allure-results && if exist allure-report rmdir /q /s allure-report && if exist cypress\screenshots rmdir /q /s cypress\screenshots && if exist cypress\videos rmdir /q /s cypress\videos`---..Thanks
I've got an error when trying to "npm test" I followed the tutorial, I added the scripts in package.json, Can you help me please? "cy:run": "cypress run --env allure=true", "allure:report": "allure generate allure-results --clean -o allure-report", "allure:clear": "if exist allure-results rmdir /q /s allure-results && if exist allure-report rmdir /q /s allure-report && if exist cypress\\screenshots rmdir /q /s cypress\\screenshots && if exist cypress\\videos rmdir /q /s cypress\\videos", "pretest": "npm run allure:clear", "test": "npm run cy:run || npm run posttest", "posttest": "npm run allure:report" Here is the error sh: -c: ligne 1: erreur de syntaxe : fin de fichier prématurée npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! cypresssmart@1.0.0 allure:clear: `if exist allure-results rmdir /q /s allure-results && if exist allure-report rmdir /q /s allure-report && if exist cypress\screenshots rmdir /q /s cypress\screenshots && if exist cypress\videos rmdir /q /s cypress\videos` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cypresssmart@1.0.0 allure:clear script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Thank you so much! You have saved my job offer assignment!
Very good video just a small correction if you can add allure "open allure-report" it works and we don't need any extra servers to run. just update the below line and all the magic is already written by QA box team
"allure:report": "allure generate allure-results --clean -o allure-report && allure open allure-report",
Thanks, I'll check. But I believe this extra info will also spin up small web server, that will serve your report. So, in nut shell , it is a server report which runs on some kind of web server. So your info will save installing an extra extension in vscode but problem is how would you reopen an already generated report, let's say after system reboot because the web server would be alive until the report is open. So, you gotta run a command to open the report again since a server has to be started to show allure report. These are my thoughts but thanks once again for reaching out and sharing this info.
@@QABoxLetsTest yeah you are right the instance will be saved only one time and the previous report cant be opened, However maybe this can be hosted in a server and the results could be saved for each build and the build history can also be used in allure report
It's a great video. I am so thankful to the author.
Hi,
any idea how we can attached screenshots to cucumber cypress reporter?
as in above we don't have cucumber integration
Hey! I did the same as you explained but my reports are only showing the skipped files and graph is grey In color. please reply
Great video, just wanna ask how to re-write the script using customize command using .sh bash?
Thanks for having such a detailed descriptive video. I am able to generate allure reports, but i am facing a couple of issues -
1. if in the cypress.json file I have some variables related to ""integrationFolder"" or "pageTimeOut", it does not generate allure-results folder. if I keep cypress.json file blank, then the files in allure-results are generated. How can i fix this?
2.if I use the command as cypress run --env allure=true --reporter mocha-allure-reporter , allure-report is generated but it does not have snapshot or videos embedded in the report. How can i achieve this?
Any help will be appreciated. Thanks!!
did u fid a way to add screenshot or video
Could you please make a video on how to add common methods in cypress[i.e. getText, getAttribute,Click, handlingDropdown... ] awaiting for this video and all your videos are awesome😊👏
Glad you are liking this series. I will add a common methods helper file. Thanks for reaching out.
@@QABoxLetsTest Thans a ton, Awaiting for video ☺
Sure, if you have a list of those common methods required then please do shoot an email to qaboxletstest@gmail.com. Thanks!!!
@@QABoxLetsTest emailed could you please check and make a video ASAP☺?
@QA Box Let's Test any update on helpers please
For me the report shows duplicate test execution, can you please suggest the fix for it.
Hello @QA Box Let's Test Thanks for detailed video but if we don't want to use any server what we need to do Please explain
Thanks. Allure requires a server to work
@@QABoxLetsTest Thanks for response
thank you very much man. what a useful video :)
Hi ,
Thanks for amazing the vedio.
Can you please tell what should be the command for mac for clearing allure-results folder each time we run test.-
allure:clear: `if exist allure-results rmdir /q /s allure-results && if exist allure-report rmdir /q /s allure-report && if exist cypress\screenshots rmdir /q /s cypress\screenshots && if exist cypress\videos rmdir /q /s cypress\videos
"clean:reports": "mkdir -p cypress/reports && rm -R -f cypress/reports/* && mkdir cypress/reports/mochareports",
Can anyone help me in allure report test body is not getting displayed of all the test cases
Hi I have tried allure report i can get the report with pass or fail message but in the report execution i am getting "No information about test execution is available." how to configure our run log and assertions with our report .Please help me with this.
Hey
I must be missing something; does you see what I showed in the video?
Allure it's not working with cypress 13.5, have someone a solution ?
This is working fine with cypress run
But when we run with cypress-parallel duplicate entries are present in allure report
Any idea?
Might be Cypress parallel module doesn't take care of this. For parallel testing Cypress dashboard is the tool Cypress offers.
How to generate reports for specific tests alone
Thank for your video, this lession is very helpfull for me. I followed the instructions on the video, but my report didn't have any attachment like video or picture. Could you kindly tell me why? Thanks a lot.
Quite possible path to screenshot and video are wrong.
@@QABoxLetsTest Could I config path or something like step, categories,..? Thanks
Thanks again :) Can you please share the command to launch the chrome browser while executing instead of headless mode?
I did try the option npm cypress run --browser chrome but it din't work.
--browser chrome --headless
@@QABoxLetsTest : Thank you, I tried --browser chrome, but still the execution is happening on headless mode.
You want headless or headed?
For headless you use --headless
For headed you use --headed
Please watch this to learn all the configurations
ruclips.net/video/k6O-pK__6tw/видео.html
NaN% is displayed even we open in live server. I think allure-results does not exist. How do we configure this path in Cypress Typescript
I guess you need to do an additional setting for the same in tsconfig file. You will find about that in the npm documentation. Kindly refer to that
I followed your instructions but still can't add video and capture in the report
You must be missing something since many have already acknowledged it works for them.
i am have this problem and is not posible to execute the test------npm ERR! allurecy@1.0.0 allure:clear: `if exist allure-results rmdir /q /s allure-results && if exist allure-report rmdir /q /s allure-report && if exist cypress\screenshots rmdir /q /s cypress\screenshots && if exist cypress\videos rmdir /q /s cypress\videos`---..Thanks
This is windows set of commands, if you are on Mac or some version of Linux then you gotta change this
@@QABoxLetsTest thanks
@@QABoxLetsTest can you please let me know how to configure this path on mac....Thanks for the awesome videos
I've got an error when trying to "npm test"
I followed the tutorial, I added the scripts in package.json,
Can you help me please?
"cy:run": "cypress run --env allure=true",
"allure:report": "allure generate allure-results --clean -o allure-report",
"allure:clear": "if exist allure-results rmdir /q /s allure-results && if exist allure-report rmdir /q /s allure-report && if exist cypress\\screenshots rmdir /q /s cypress\\screenshots && if exist cypress\\videos rmdir /q /s cypress\\videos",
"pretest": "npm run allure:clear",
"test": "npm run cy:run || npm run posttest",
"posttest": "npm run allure:report"
Here is the error
sh: -c: ligne 1: erreur de syntaxe : fin de fichier prématurée
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cypresssmart@1.0.0 allure:clear: `if exist allure-results rmdir /q /s allure-results && if exist allure-report rmdir /q /s allure-report && if exist cypress\screenshots rmdir /q /s cypress\screenshots && if exist cypress\videos rmdir /q /s cypress\videos`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cypresssmart@1.0.0 allure:clear script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Might be because the scripts are not appropriate. Please adjust the scripts as per your operating system