Part 23 - Allure HTML Report in Cypress | Attach Video and Screenshots into Allure HTML Report

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 49

  • @iranamiriyeva
    @iranamiriyeva 2 года назад +1

    Thank you so much! You have saved my job offer assignment!

  • @ananddharmar9602
    @ananddharmar9602 3 года назад +1

    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",

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад +1

      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.

    • @ananddharmar9602
      @ananddharmar9602 3 года назад

      @@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

  • @mdtauhidulislam3266
    @mdtauhidulislam3266 2 года назад +1

    It's a great video. I am so thankful to the author.

  • @abhisheksagare
    @abhisheksagare 4 месяца назад

    Hi,
    any idea how we can attached screenshots to cucumber cypress reporter?
    as in above we don't have cucumber integration

  • @marchbaby2431
    @marchbaby2431 2 года назад

    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

  • @qatester6425
    @qatester6425 2 года назад

    Great video, just wanna ask how to re-write the script using customize command using .sh bash?

  • @rahulraina5
    @rahulraina5 2 года назад

    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!!

  • @feeding.animals9710
    @feeding.animals9710 3 года назад +1

    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😊👏

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад +1

      Glad you are liking this series. I will add a common methods helper file. Thanks for reaching out.

    • @feeding.animals9710
      @feeding.animals9710 3 года назад

      @@QABoxLetsTest Thans a ton, Awaiting for video ☺

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад

      Sure, if you have a list of those common methods required then please do shoot an email to qaboxletstest@gmail.com. Thanks!!!

    • @feeding.animals9710
      @feeding.animals9710 3 года назад

      @@QABoxLetsTest emailed could you please check and make a video ASAP☺?

    • @MirzaTalks36
      @MirzaTalks36 3 года назад

      @QA Box Let's Test any update on helpers please

  • @maheshbhakuni6172
    @maheshbhakuni6172 2 года назад

    For me the report shows duplicate test execution, can you please suggest the fix for it.

  • @samikshaparkar2834
    @samikshaparkar2834 2 года назад

    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

  • @hidemane3403
    @hidemane3403 3 года назад +1

    thank you very much man. what a useful video :)

  • @ayushijain9593
    @ayushijain9593 2 года назад +1

    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

    • @QABoxLetsTest
      @QABoxLetsTest  2 года назад

      ​ ​"clean:reports"​: ​"​mkdir -p cypress/reports && rm -R -f cypress/reports/* && mkdir cypress/reports/mochareports​"​,

  • @aayushkhandelwal3522
    @aayushkhandelwal3522 2 года назад

    Can anyone help me in allure report test body is not getting displayed of all the test cases

  • @kalpanas1059
    @kalpanas1059 3 года назад

    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.

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад

      Hey
      I must be missing something; does you see what I showed in the video?

  • @DavidAllanVillarroelCasas
    @DavidAllanVillarroelCasas 11 месяцев назад

    Allure it's not working with cypress 13.5, have someone a solution ?

  • @theAditya8910
    @theAditya8910 2 года назад

    This is working fine with cypress run
    But when we run with cypress-parallel duplicate entries are present in allure report
    Any idea?

    • @QABoxLetsTest
      @QABoxLetsTest  2 года назад

      Might be Cypress parallel module doesn't take care of this. For parallel testing Cypress dashboard is the tool Cypress offers.

  • @vivekanokanathan1201
    @vivekanokanathan1201 2 года назад

    How to generate reports for specific tests alone

  • @hangochung8730
    @hangochung8730 3 года назад

    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.

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад +1

      Quite possible path to screenshot and video are wrong.

    • @hangochung8730
      @hangochung8730 3 года назад

      @@QABoxLetsTest Could I config path or something like step, categories,..? Thanks

  • @tejkumarkempaiah4906
    @tejkumarkempaiah4906 3 года назад

    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.

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад +1

      --browser chrome --headless

    • @tejkumarkempaiah4906
      @tejkumarkempaiah4906 3 года назад

      @@QABoxLetsTest : Thank you, I tried --browser chrome, but still the execution is happening on headless mode.

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад +1

      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

  • @Ashokkumarg8
    @Ashokkumarg8 3 года назад

    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

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад +1

      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

  • @RyanTran209
    @RyanTran209 3 года назад

    I followed your instructions but still can't add video and capture in the report

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад

      You must be missing something since many have already acknowledged it works for them.

  • @JhoanGarciaing
    @JhoanGarciaing 3 года назад

    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

    • @QABoxLetsTest
      @QABoxLetsTest  3 года назад

      This is windows set of commands, if you are on Mac or some version of Linux then you gotta change this

    • @JhoanGarciaing
      @JhoanGarciaing 3 года назад

      @@QABoxLetsTest thanks

    • @ishan23786
      @ishan23786 3 года назад

      @@QABoxLetsTest can you please let me know how to configure this path on mac....Thanks for the awesome videos

  • @aristidetovoniaina2242
    @aristidetovoniaina2242 2 года назад

    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.

    • @QABoxLetsTest
      @QABoxLetsTest  2 года назад

      Might be because the scripts are not appropriate. Please adjust the scripts as per your operating system