#10 Generate HTML Report In Cypress | MochAwesome Reporter

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • In this video, I will show you how to generate HTML report in cypress.
    Cypress Plugin
    github.com/Lir...
    github.com/ada...
    Cypress Playlist
    • #1 What Is Cypress
    JavaScript For Beginner
    • How To Download And In...
    Supported By TestRigor
    Sign up today - testrigor.com/...
    If you want to support this channel
    rzp.io/l/qNCAp...
    All Playlist
    / mukeshotwani
    Connect with us:
    Email - mukeshotwani@learn-automation.com
    Linkedin- / mukesh-otwani-93631b99
    Instagram- / mukeshotwaniofficial
    Facebook Group- / 256655817858291
    Facebook Page- / seleniumwebdrivermukesh
    Blog- learn-automatio...

Komentáře • 33

  • @sindhusudhakaran1731
    @sindhusudhakaran1731 Před 9 měsíci +1

    I was looking for this. Thank you Mukesh :) !!

  • @naddailam3501
    @naddailam3501 Před rokem

    Long live Mukesh.. blessing from a humble leaner .. !

  • @rammsteiniano477
    @rammsteiniano477 Před 2 lety +1

    this is amazing! thank you so much for this content of cypress! :)

  • @anupdeshmane8827
    @anupdeshmane8827 Před 2 lety

    very nice explanation mukesh,
    but i have question can we catch snackbar by using cypress

  • @kirankumarsukumar
    @kirankumarsukumar Před 2 lety

    Very useful. Thanks for the excellent work

  • @tejkumarkempaiah5373
    @tejkumarkempaiah5373 Před rokem

    Hi Mukesh, Thanks for the video.. Will this reporter display when all the folders inside the path cypress cypress/integration are executed at once?

  • @user-hm9ee5oh8l
    @user-hm9ee5oh8l Před 10 dny

    I am getting a different html report for each spec file, is there a way to generate 1 html file at the end of the run? TIA!

  • @garimakhandwe7133
    @garimakhandwe7133 Před rokem +1

    Hi sir, really good explanation. I have done the same thing in mine, the table of stats showing pass and fail is coming for only pass scenarios and not showing for fail scenarios, can u pls suggest for this, why it can be. i am testing for one scenario only making it pass so table comes, if make it fail then table doest not show and report does not generate

    • @Mukeshotwani
      @Mukeshotwani  Před rokem

      Hi Garima, please add assertion to make test pass or fail because if we dont add assertions then test status will be always passed.

    • @garimakhandwe7133
      @garimakhandwe7133 Před rokem +1

      @@MukeshotwaniThank you for your reply. I had intentionally provided wrong locator value to fail the test case, if we run by opening cypress it is failing, but in headless mode the table is not getting generated on fail

    • @Mukeshotwani
      @Mukeshotwani  Před rokem

      @@garimakhandwe7133 Thats strange because whether you execute the test in headed mode or headless behavior should not change. Please share the exception trace or logs to debug it.

    • @garimakhandwe7133
      @garimakhandwe7133 Před rokem +1

      @@Mukeshotwani it is in my project one, company, cannot share. is it based on any node modules already downloaded or any settings that it is suppressed on failure scenarios

    • @Mukeshotwani
      @Mukeshotwani  Před rokem

      Mochawesome reports captures all events.

  • @dineshbabu3938
    @dineshbabu3938 Před 2 lety

    Thanks again for this informational video. Could you please do the same content on latest version of Cypress.

  • @lindajuliethmontoyasanchez9259

    Excellent videos, thank you very much for sharing the knowledge, Mukesh, please do you have a video in which I implement cypress-mochawesome-reporter in cypress 10, I am trying to configure it following the video but it does not load the index.html

    • @Mukeshotwani
      @Mukeshotwani  Před 2 lety

      Hi Linda, Cypress 10 has different folder structure and configurations. Do you want video on How to migrate from Cypress 9 to Cypress 10?

    • @lindajuliethmontoyasanchez9259
      @lindajuliethmontoyasanchez9259 Před 2 lety

      @@Mukeshotwani Hello Mukesh, I created a new project implementing cypress 10 + Cucumber which works correctly for me but now I have to implement a reporter and mochawesome seemed interesting to me but the configuration does not work for me, I would appreciate your help.

  • @misterkim6491
    @misterkim6491 Před rokem +1

    many thanks!

  • @priyagurde571
    @priyagurde571 Před 2 lety

    Mukesh, here module.exports = (on, config) => {
    require('cypress-mochawesome-reporter/plugin')(on);
    };
    gives error as -
    (parameter) config: any
    'config' is declared but its value is never read.ts(6133)
    Parameter 'config' implicitly has an 'any' type.ts(7006)

  • @shreyasjain9891
    @shreyasjain9891 Před 2 lety

    Hi I am follower of you for Selenium and Cypress. Can you please make a video of how to get the xml report similar to html and delete the old report on every run

  • @soma062612
    @soma062612 Před 9 měsíci +1

    I am using cypress-mochawesome-reporter version "cypress-mochawesome-reporter": "^3.5.1" , it doesn't add the screenshots in the html report file. It just takes screenshots and gets saved in a folder. How do I add the screenshots in the html report.

    • @sindhusudhakaran1731
      @sindhusudhakaran1731 Před 9 měsíci

      I see screenshots in the HTML report file only for the failed cases.

    • @soma062612
      @soma062612 Před 9 měsíci

      @@sindhusudhakaran1731 I am not able to see for failed tests as well, could you share your cypres and mocha awesome reporter version also if possible could you share what all report options you have set.

  • @yevhenmikhalov2258
    @yevhenmikhalov2258 Před 2 lety +1

    Thanks bro

  • @lovely-do8ns
    @lovely-do8ns Před 2 lety +1

    Hi sir I can see only json file , no html report generated

    • @Mukeshotwani
      @Mukeshotwani  Před 2 lety

      Hi Vicky, you must have missed something which is causing this. Please check video again or visit this document github.com/LironEr/cypress-mochawesome-reporter

  • @mushfiquazaman9597
    @mushfiquazaman9597 Před 2 lety

    Very nice presentation. Thank you. I need some help. May I communicate by email with you?