EXTENT REPORT - Version 4 For Cucumber - Using Junit & TestNG Runner

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 59

  • @julianpatino6622
    @julianpatino6622 2 ปีที่แล้ว +1

    Hi teacher. Thank you so much for your help. I had problems with your process, but it encouraged me to look for the solution. I was able to configure the extent report in my project, and it can currently add screenshots as well. You are the best. If anyone need the configuration with JUnit, my project works perfectly, and it's public as well. He who does not live to serve, does not deserve to live. Mother Teresa of Calculta. Greetings from Colombia.

    • @SaravananSeenivasan
      @SaravananSeenivasan  2 ปีที่แล้ว

      Thank you sir
      please share your work here
      that helps others 🙏

    • @julianpatino6622
      @julianpatino6622 2 ปีที่แล้ว +1

      @@SaravananSeenivasan I don't know why the system doesn't let paste the link of my repository here. The system deletes it.

  • @Viswakrish2405
    @Viswakrish2405 3 ปีที่แล้ว +1

    Hi Saravanan , Randomly I have seen a viewed a video .. very simple easy examples ...good and easy to gain knowledge 👍

  • @thiagarajavicky7820
    @thiagarajavicky7820 4 ปีที่แล้ว +2

    Clear explanation...thanks for the video👍

  • @seleniumharish2439
    @seleniumharish2439 3 ปีที่แล้ว

    Hi saravanan thank you for the video but i am facing one issue in screen shot attached.. When there are multiple scenario are failed latest screen shot is getting attached to all the failed scenario in the report... Please help on this thanks

  • @ParagOak
    @ParagOak 4 ปีที่แล้ว +2

    Hello great explanation, But When I checked your shared code , there is no TestNG runner file.
    Can you please add the code code which is referred in the video.
    I’m explicitly looking for cucumber + TestNG + Extent Report combination

  • @archanamuthukrishnan6465
    @archanamuthukrishnan6465 2 ปีที่แล้ว +1

    Hello Sir
    I am using rerun functionality along with cucumber framework.when I see extent report recent results(after rerun) are not updated in the spark report.are there any way to combine and generate single report ?

    • @SaravananSeenivasan
      @SaravananSeenivasan  2 ปีที่แล้ว

      Hi
      I don't think so
      you can generate as 2 different report and share

    • @archanamuthukrishnan6465
      @archanamuthukrishnan6465 2 ปีที่แล้ว

      @@SaravananSeenivasan ohh ok Sir.are there any ways to create a sinple dashboard from json files?.I am using Cucumber framework and jvm report are getting generated. My higher management asking to display dashboard in generated mail with no of TC passed , failed and result.... any suggestions?

  • @hemalatha9610
    @hemalatha9610 2 ปีที่แล้ว +1

    Hi Saravanan, explanation was very clear. I request you to make a video on extent 5 including screen shots in the report.

  • @pavankumar-qi2ou
    @pavankumar-qi2ou 3 ปีที่แล้ว

    Hi Seenivasan, i have tried all steps but after test run it is not creating any report and not creating Selenix-spark or selenix-logger folder. Any Suggentions
    I Made some changes now report is generated but Screenshot is not attcahed in the report

  • @johndev2795
    @johndev2795 4 ปีที่แล้ว +1

    Wow what great explanation.

  • @tarunsahoo2852
    @tarunsahoo2852 4 ปีที่แล้ว +1

    Getting runtime cucumber exception as unrecognized plugin....is the src/test/resources folder, default location for extent.properties file?

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว

      yes src/test/resources is path
      what error you are getting ?

    • @tarunsahoo2852
      @tarunsahoo2852 4 ปีที่แล้ว +1

      @@SaravananSeenivasan cucumber.runtime.CucumberException: Unrecognized plugin: com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว

      @@tarunsahoo2852 make sure you have added the right dependency versions

  • @archanamuthukrishnan6465
    @archanamuthukrishnan6465 2 ปีที่แล้ว

    Hello Sir
    Am using extentreports-cucumber7-adapter but getting IIegalArgumentExceptiontest name must not be null .can you pless3 let me know what needs to be dine

    • @SaravananSeenivasan
      @SaravananSeenivasan  2 ปีที่แล้ว

      which version of cucumber dependency have you used
      make sure io.cucumber also in sync with extentreport-cucumber7-adapter

  • @Someone_2923
    @Someone_2923 4 ปีที่แล้ว +1

    Hi Sir, how can i avoid overriding my old reports?
    How to append timestamp with report file name? Please reply

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว +1

      Hi Balaji,
      can you configure like this in extent.properties file and check
      extent.reporter.spark.out=test-output/SparkReport/
      screenshot.dir=test-output/
      screenshot.rel.path=../
      basefolder.name=reports
      basefolder.datetimepattern=d-MMM-YY HH-mm-ss

    • @Someone_2923
      @Someone_2923 4 ปีที่แล้ว +1

      It works sir.. Thank you so much for the solution and immediate reply 🙏🙏

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว +1

      @@Someone_2923 It's ok no problem
      thank you 👍🏻

    • @nirmalyadav3768
      @nirmalyadav3768 3 ปีที่แล้ว

      @@SaravananSeenivasan Hi Saravanan-Thanks for sharing this video, it's really helpful.. I tried using basefolder.name & datetimepattern but it didn't generate report with timestamp. I still see it with index.xml..Any guidance on this will be really helpful.

  • @subh1505
    @subh1505 4 ปีที่แล้ว +1

    I am able to generate only spark report.. When I am keeping spark and logger false. No reports are generated

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว

      you able to generate a spark when you kept as FALSE ?

    • @subh1505
      @subh1505 4 ปีที่แล้ว +1

      No.. Only spark report is getting generated only if I keep all three true.. Or only spark.start=true and rest 2 false

    • @subh1505
      @subh1505 4 ปีที่แล้ว +1

      I solved this by changing the version of extentreports-cucumber5-adapter to 1.5.1.. I have one more query.. How can I attach screenshot to the html report?

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว

      @@subh1505 did you add screenshot path in properties file ?
      if you add screenshot path then it will be attached

    • @subh1505
      @subh1505 4 ปีที่แล้ว +1

      @@SaravananSeenivasan thanks.. Screenshot got attached.. I could successfully generate reports for some time.. Now I am getting a new error.. java.io.FileNotFoundException:\test-output\HtmlReport (Access is Denied)

  • @komtechacademy9544
    @komtechacademy9544 2 ปีที่แล้ว +1

    Hi Saravana,
    What is contents in extent-reports.xml file?
    is it blank? or any data in xml file?

  • @anuprai3685
    @anuprai3685 4 ปีที่แล้ว +1

    Hi, very helpful information that you.
    I have one doubt related to logger report.
    Trying to generate logger report with jUnit but it’s not working.
    Any suggestion for this.
    Thanks,
    Anup

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว

      Thanks for the feedback, are you using cucumber with junit or only junit ?
      if its only junit then you cannnot use this report

  • @mahanlavvi
    @mahanlavvi 3 ปีที่แล้ว +1

    Hi Saravanan, Thanks for the video ....have two questions
    1.can we customize the extent HTML report and I would like to add the time taken to run each scenario in the tag view along with the time stamp, test name, and status?
    2. also is there a way to store all the previously generated reports instead of overriding the report each time we run the tests?

    • @SaravananSeenivasan
      @SaravananSeenivasan  3 ปีที่แล้ว

      yes please refer extent report website for all configurations
      use time stamp folder for each report that's where you can save all the reports

    • @mahanlavvi
      @mahanlavvi 3 ปีที่แล้ว

      @@SaravananSeenivasan this is what I defined in the extent.properties how to add a timestamp to the advanced-reports folder?
      extent.reporter.html.start=true
      extent.reporter.html.config=
      extent.reporter.html.out=target/cucumber-reports/advanced-reports/extent.html

  • @barathkumar5974
    @barathkumar5974 4 ปีที่แล้ว +1

    Hi Saravanan, thank you very much for the video. In the github, i'm not seeing the TestNG related files, can you please add

  • @nikitha4685
    @nikitha4685 ปีที่แล้ว +1

    I followed the exact steps but no report is generated.Can you plz help me@SaravananSeenivasan?

  • @kumar17299
    @kumar17299 ปีที่แล้ว +1

    Nuvu Super bro

    • @SaravananSeenivasan
      @SaravananSeenivasan  ปีที่แล้ว

      Thanks, bro 😇

    • @kumar17299
      @kumar17299 ปีที่แล้ว

      @@SaravananSeenivasan bro, how can I get step by step results, I mean I have a BDD step as ‘give user can login in to insurance portal with valid un and pw’
      It contains multiple actions like sending UN, PW and click on login button. If I want to see report for this all how can I configure

  • @Someone_2923
    @Someone_2923 4 ปีที่แล้ว

    Thanks for the video...
    But I am facing "The 3rd party plugin must implement io.cucumber.plugin.Plugin" error... Any idea to resolve it?
    Please reply

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว +1

      can you confirm the cucumber and extent report adapter dependencies versions?

    • @Someone_2923
      @Someone_2923 4 ปีที่แล้ว +1

      @@SaravananSeenivasan I am using cucumber-testng 6.8.1, extent reports 5.0.4 and cucumber5 adapter 2.0.0

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว +1

      ​@@Someone_2923 make sure your io.cucumber dependencies in - 5.7.0
      and extentreports-cucumber5-adapter - 1.3.2 and you don need extent report dependency
      this is best combination i ever tried if your dependencies not in sync you will get these errors

    • @Someone_2923
      @Someone_2923 4 ปีที่แล้ว +1

      @@SaravananSeenivasan Thanks for the reply. I will try

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว +1

      @@Someone_2923 please find the code in this link - github.com/sseenivasan89/Cucumber-ExtentReport4

  • @johndev2795
    @johndev2795 4 ปีที่แล้ว

    Hi saravan pls share the git hub link if u have ! Please

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว

      please find the git repo - github.com/sseenivasan89/Cucumber-ExtentReport4

  • @purnimashanti6030
    @purnimashanti6030 4 ปีที่แล้ว

    Hi, Great explanation. It's working. I am just concerned about the version of cucumber version 5.7.1 you are using. The latest version is 6.9.1. Can I upgrade to use the latest version?. There is a new version for Extent reports cucumber adapter. It's version 6. Do you think we can use these combination?.
    One more question : Can we execute the runner class from command line?. I am using Gradle project.