Cypress HTML Reports Integration || Mocha awesome reports (Step by Step.)

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • In this video, We are going to integrate the Mocha awesome report with cypress Testcases.
    Cypress HTML reports are important way to represent what is the state of the cypress Testcases after an automation run.
    Cypress is built on top of Mocha, that means any reporter built for Mocha can be used with Cypress.
    What is a Mocha awesome Reports
    Mochawesome is a custom reporter for use with the Javascript testing framework, mocha. It runs on Node.js (more than 10) and works in conjunction with mochawesome-report-generator to generate a standalone HTML/CSS report to help visualize your test runs.
    Download : www.npmjs.com/...
    Install Mochaawesome
    npm install --save-dev mochawesome
    More cypress reporting tutorial : docs.cypress.i...
    In cypress.json
    {
    "reporter": "mochawesome",
    "reporterOptions": {
    "reportDir": "cypress/report/mochawesome-report",
    "overwrite": true,
    "html": true,
    "json": false,
    "timestamp": "mmddyyyy_HHMMss"
    }
    }
    cypress run --reporter mochawesome
    More reporting or Reporter Options
    Some reporters accept options that customize their behavior. These can be specified in your configuration file (cypress.json by default) or via command line options.
    Reporter options differ depending on the reporter (and may not be supported at all). Refer to the documentation for the reporter you are using for details on which options are supported.
    The below configuration will output the JUnit report to STDOUT and save it into an XML file.
    docs.cypress.i...
    In this video cypress tutorial for beginners,
    Cypress is a JavaScript test automation solution for web applications.
    It enables teams to create web test automation scripts.
    This solution aims to enable frontend developers and test automation engineers to write web tests in the de-facto web language that is JavaScript.
    Cypress also supports the Mocha test framework so the core technologies in which you would develop your web test automation are Java Script on top of Mocha.
    It is a test automation tool that enables developers to automate web browser testing.
    The Selenium WebDriver protocol enables sending commands in various development languages like Java, Java Script, C#, Python, and others from the test environment (IDEs) to a selected desktop browser (Chrome, Firefox, Edge, Safari).
    -----------------------------------------------------
    👪 Join our Community - bit.ly/learntes...
    ✅ Automation Community - thetestingacad...
    🐦Follow us on Twitter - / itstechmode
    📖 Like us on Facebook - / scrolltest
    🎤 Listen to our Podcast - anchor.fm/thet...
    ------------------------------------------------------
    #automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest
    ~-~~-~~~-~~-~
    Please watch: "Cypress Tutorial For Beginners : Part 2
    • Cypress Tutorial For B...
    ~-~~-~~~-~~-~
    🚀 Tools and services I recommend:
    Some of the courses that I recommend to become better Automation Tester 🙌🙌
    ✅Selenium Training and Certification -
    scrolltest.com...
    ✅Learn Jenkins for QA -
    bit.ly/learnje...
    ✅Programming Java -
    bit.ly/learnja...
    ✅Test Automation -
    bit.ly/learnau...
    ✅API Testing -
    www.learnapite...
    ✅Cypress Tutorial with LIVE Projects -
    cypresstutorial...

Komentáře • 34

  • @shadthakkar7881
    @shadthakkar7881 Před 3 lety +1

    thank you so much - this video helped me a lot

  • @kailashpathak8906
    @kailashpathak8906 Před 4 lety +1

    Can you please make one video on allure report with cypress

  • @manirajsundaram19
    @manirajsundaram19 Před 4 lety +1

    How to send the HTML report to Manager since it is showing local URL for the report. So it will run only on my local machine, how we can send it to manager and make them run the HTML file? pls help

    • @TheTestingAcademy
      @TheTestingAcademy  Před 4 lety

      Run this project in Jenkins and Configure Mail there or use a Node module in after module
      www.npmjs.com/package/gmail-send
      Email me at contact@thetestingacademy.com, if you need more information.

  • @samikshaparkar2834
    @samikshaparkar2834 Před rokem

    Hello @The Testing Academy, Thanks for sharing this video but can you please suggest if we don't want to use server what we need to do, Please explain

  • @creativeamar
    @creativeamar Před rokem

    Hi Video is good, but how to capture all tests in one report? This video shows how the report of just last run test case. Can you show how to capture results of multiple tests in Mocha awesome reports?

  • @nikitharaj6949
    @nikitharaj6949 Před 4 lety

    @team This video shows how the report of just last run test case. Can you show how to capture results of multiple tests in Mocha awesome reports?

  • @WasimAkram-ph9gp
    @WasimAkram-ph9gp Před 2 lety

    Hi Sir,
    I have a button in the
    If I click that button it will open a new window.
    I am able to click button inside the frame but not able to replace the parent window/use the child window
    Please help

  • @mahalakshmidhandapani9358

    By default Cypress.json not displayed in my project. Can I add cypres.json file manually

  • @udaikumar9969
    @udaikumar9969 Před 3 lety

    Video is Awesome. Sir can you please share a video doing line by line Debug for in cypress similar to the one we do in Selenium webdriver using debug as Test Ng for each Java Code variables and Webelements.

  • @sandeepagrawal7021
    @sandeepagrawal7021 Před 2 lety

    Sir I did all the things but I did not get report folder

  • @swatichahande
    @swatichahande Před rokem

    which Cypress version u used

  • @sarahtabu
    @sarahtabu Před 4 lety

    Am able to view the report in chrome but in ie11 it gives an error symbol is undefined, due to his incompatibility issue ,we want to configure Jenkins to email this and render in msg body due to js error it's not loading at all ,how to fix this ? any idea on this?

  • @vidyadipu7589
    @vidyadipu7589 Před 2 lety

    Do you have any videos related to visual regression test for percy

  • @kailashpathak8906
    @kailashpathak8906 Před 4 lety

    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

  • @princebautista
    @princebautista Před 2 lety

    After getting the mochawesome.html, how do we send it via email after each test run?

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

      You have to create a custom function to do the same

    • @princebautista
      @princebautista Před 2 lety

      @@TheTestingAcademy Thanks for the reply. That's what I did, but I need to get some type of service to get it sent. Haven't seen a free one that works.

  • @aakashtyagi7324
    @aakashtyagi7324 Před 4 lety

    sir am facing problem to merge html report
    pls advice

    • @TheTestingAcademy
      @TheTestingAcademy  Před 4 lety

      Can you please connect with over Facebook group or mail at contact@thetestingacademy.com ?

  • @manirajsundaram19
    @manirajsundaram19 Před 4 lety

    HI! How can I send this report via email (html file) and then open file with mobile, for example?

    • @TheTestingAcademy
      @TheTestingAcademy  Před 4 lety

      You can use some node module like Gmail send - www.npmjs.com/package/gmail-send

  • @pattranitm.7450
    @pattranitm.7450 Před 4 lety

    When test case fail, screenshots will come out?

  • @saifalhindosh2649
    @saifalhindosh2649 Před 3 lety

    Hi, how can I combine all the htmls to one html?