Mochawesome Html Report in Cypress - Part - 16

Sdílet
Vložit
  • čas přidán 21. 08. 2024

Komentáře • 51

  • @vipuljain420
    @vipuljain420 Před 4 měsíci

    Thank you so much

  • @maheshkalagatta5364
    @maheshkalagatta5364 Před 3 lety

    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

  • @poojashaw8526
    @poojashaw8526 Před 4 lety +2

    Thanks for the awesome video.One request...can you please continue the DS and algo series videos?

    • @mayankjain9941
      @mayankjain9941 Před 4 lety

      hello, Pooja have you tried the above video? Actually, I am getting an error while merging .json file.

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

      @@mayankjain9941 try out the below for merging -
      "merge": "mochawesome-merge cypress/reports/*.json -o cypress/reports/final.json",

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

      @@appansingharoy491 I got the above solution a 2 month back only. Anyway thanks for your comments

  • @shabbyguy4334
    @shabbyguy4334 Před 4 lety +3

    Hi Naveen, great video Buddy, Is there a away to add screenshots to the report for FAILED Test Cases?

  • @apurvarohamare4665
    @apurvarohamare4665 Před 2 lety

    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.

  • @TechnicallyTaken
    @TechnicallyTaken Před 3 lety

    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 🙏

  • @nikhilgupta5721
    @nikhilgupta5721 Před 2 lety

    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.

  • @pradeepkumar123ful
    @pradeepkumar123ful Před 4 lety

    after imlimentation my test are failed & cypress' is not recognized as an internal or external command,
    operable program or batch file.

  • @nayahm4787
    @nayahm4787 Před 4 lety

    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 ?

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

    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)

  • @nityaupadhyay629
    @nityaupadhyay629 Před 3 lety

    Hi Sir. Request to please make a video for validating data in pdf using cypress Automation. Thankyou

  • @wajid989
    @wajid989 Před 3 lety

    Hi Naveen, Can you please create a video if possible about how to attach mochawesome report as attachment to mail via Jenkins.

  • @gauravtyagi7567
    @gauravtyagi7567 Před 3 lety

    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

  • @nalamarusivasankar893
    @nalamarusivasankar893 Před 2 lety

    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:

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

      you need to execute this command under the folder path were cypress folder or testcases are present

  • @nealbangia147
    @nealbangia147 Před rokem

    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

  • @chicharapidugutanishk
    @chicharapidugutanishk Před 3 lety

    Hi Naveen, I am unable to join your Telegram group - link provided above.. Please provide valid lin to join your telegram group

  • @BeOptimisticWithMe
    @BeOptimisticWithMe Před 2 lety

    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

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

    Report Folder is not created in my folder any solution ?

  • @rehthro
    @rehthro Před 4 lety

    Any idea on how I can then export these if I run the tests via a CI tool

  • @syamalaalapati6206
    @syamalaalapati6206 Před 2 lety

    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?

  • @prabhumishra3323
    @prabhumishra3323 Před 2 lety

    I am getting the error failed to merge reports

  • @manishabro
    @manishabro Před 3 lety

    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

  • @rcbchowdarytumati1224
    @rcbchowdarytumati1224 Před 4 lety

    I am struggling to download a PDF file for two months, could you please help me please.

  • @mayankjain9941
    @mayankjain9941 Před 4 lety

    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

    • @mirshodtairov3498
      @mirshodtairov3498 Před 2 lety

      Hello, i am getting the same issue. Were you able to resolve it? if yes, would you please share the solution. Thanks In advance

    • @BeOptimisticWithMe
      @BeOptimisticWithMe Před 2 lety

      the .json files you have should not be blank or contains 0 result

    • @shashankatole6968
      @shashankatole6968 Před 8 měsíci

      "merge": "mochawesome-merge cypress/reports/*.json -o cypress/reports/output.json", USE THIS WAY -0

  • @animeshkr29
    @animeshkr29 Před 3 lety

    Hi Naveen
    Is possible to send this mocha report in email and recipient can open in their desktop and see ?
    Any help ?

    • @simranarora9837
      @simranarora9837 Před 2 lety

      Hi Animesh, did you receive any solution for your question? Actually i am having the same query as of now.

    • @animeshkr29
      @animeshkr29 Před 2 lety

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

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

    • @MohanRaj-by9us
      @MohanRaj-by9us Před 3 lety

      Hi, Myself also facing same problem. Did you identify any solution? Please let me know.

    • @kailashpathak8906
      @kailashpathak8906 Před 3 lety

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

  • @priyankawadodkar5681
    @priyankawadodkar5681 Před 4 lety

    Hi Naveen, when using merge command getting error as unexpected end if json.can you suggest fix.

    • @Vinni-Dhruva
      @Vinni-Dhruva Před 3 lety

      Hi, I am also facing the same issue while executing merge command. Did you find any solution? please let me know.

    • @niharranjanmahalik6542
      @niharranjanmahalik6542 Před 3 lety

      @@Vinni-Dhruva did u get fixed?

    • @niharranjanmahalik6542
      @niharranjanmahalik6542 Před 3 lety

      did u get fixed? iam also facing the same

    • @venkataharishutpala8985
      @venkataharishutpala8985 Před 2 lety

      Hi I am also facing same issue . if anyone fixed this please mention in comment section

    • @mirshodtairov3498
      @mirshodtairov3498 Před 2 lety

      @@venkataharishutpala8985 were you able to fix this issue ?

  • @shashankatole6968
    @shashankatole6968 Před 8 měsíci

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