Extent Reports 4 + TestNG Listeners in Selenium WebDriver Java

Поділитися
Вставка
  • Опубліковано 15 вер 2024

КОМЕНТАРІ • 215

  • @manikannanmarimuthu9232
    @manikannanmarimuthu9232 4 роки тому +4

    I have gone through all the 3 videos and implemented. Superb Explanation.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Glad you liked it :)
      Please help by liking and sharing the video.

  • @bhuvanchandmaddi800
    @bhuvanchandmaddi800 3 роки тому +2

    Your explaination is quite amazing, I have gone through tons of other videos in youtube but it was quite helpful. You've mastered the art of teaching without any though i've enrolled in course.Thanks a lot

  • @Kiran200002
    @Kiran200002 Рік тому +1

    Thankyou for explaining. I had tried to get the extent report and it worked in a single execution 😊. Both positive and negative scenarios are working

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Рік тому +2

      Glad you liked it :)
      If you liked our way of explanation, please look at these courses to enroll:
      courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899
      courses.letskodeit.com/courses/test-automation-bundle?coupon=UA-camRS29

  • @anirudhruhela928
    @anirudhruhela928 4 роки тому +1

    After going thru tones of videos I found all three videos are really help full. Just a small feed back while coding you are really quick which shows your perfection but it is not good for a new guy like me. Thanks a lot

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +5

      Glad you found it helpful, please like and share the video to spread the word :)
      I am not actually typing quick. I am just saving some time by skipping the complete typing of code. This is done intentionally, otherwise if I shows every statement typing then the video becomes very slow and people may not like it.

  • @lavanya13reddy
    @lavanya13reddy 4 місяці тому +1

    This is the best videio. I get my solution. Thank you😊

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 місяці тому +1

      Glad you liked it :)
      Please help by liking and sharing the video.

  • @avishekbehera
    @avishekbehera 4 роки тому +1

    Amazing video, Nicely explained .
    Very well structured code.
    Now this video helped me, hence it is my primary responsibility to give back to you.
    I did watch all the Ads that appeared, a tiny gesture. Your efforts behind making 22 mins of video , least we can watch 2 mins of Ads if that helps you in anyway. thank you very much.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      It definitely helps, thanks for your nice gesture. If you like our videos, you can also think about enrolling in our courses. Here are few options:
      learn.letskodeit.com/p/test-automation-bundle/?product_id=1483892&coupon_code=UA-camRS29
      learn.letskodeit.com/p/selenium-webdriver-with-java/?product_id=342636&coupon_code=UA-camSELJAVA9

  • @paramchaudhary2078
    @paramchaudhary2078 Рік тому +1

    Great work, Great video...…..thanks a lot !

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Рік тому +1

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.

  • @shraddhapatil4524
    @shraddhapatil4524 2 роки тому +1

    Thanks a lot for detailed explanation.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 роки тому +1

      Glad it helped you :)
      Please help spread the word by liking and sharing the video.
      If you like our content, you can also enroll in the complete course where POM is already covered.
      courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899

  • @vimalaangelus9503
    @vimalaangelus9503 3 роки тому +1

    Lovely explanation .Thank you .Was really helpful .I am going to try it for sure.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Glad you found it helpful, please like and share the video to spread the word :)

  • @Kabilanmani93
    @Kabilanmani93 3 роки тому +1

    Hi, I have a doubt about the custom logging in extent report in this approach. Kindly help me with it.
    The ExtentTest object is created in a class (onTestStart method) that implements the ITestListener interface.
    test.log(STATUS.PASS,"success"); works only in that class.
    How can this test object be used in other classes where multiple test cases shall exist for custom logging?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      In that scenario, we should create a BaseTest Class and then use that.
      All Test Classes should inherit BaseTest Class.
      You can take one of our courses, you will learn a lot of details:
      courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899
      Includes 9 Courses, future new test and automation courses will be added to this bundle
      courses.letskodeit.com/courses/test-automation-bundle?coupon=UA-camRS29

    • @mohamedilyas8610
      @mohamedilyas8610 3 роки тому

      Extend the listener to the java class where u need and call the method to print the log in report. Hope u will get this

  • @bivekchand5861
    @bivekchand5861 3 роки тому +3

    Great Video. On TestListeners class you have explicitly got the driver instance from test class , that means if there was 100 test case we will have to define that step 100 times. It would be efficient if there was a base driver class and somehow you could capture that driver instance

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +2

      This is exactly how it is done when we have framework. There is a BaseTest Class which should be used.

    • @mohamedilyas8610
      @mohamedilyas8610 3 роки тому +1

      @@LetsKodeItOfficial Thanks brother.This is the video i was looking for and it helped me to get clear idea.I need help from you.I have declared browser variable in base class and imported in TestListeners class.But after run in the console it says
      "'C:\Users\QA\AppData\Local\Temp\screenshot15785966358997876699.png' exists but is not a directory" & image is not attached to the report.Can you help me it would be great.Thanks!

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      @@mohamedilyas8610 There might be some issues with the path. I would suggest you to use your own custom path instead of using something from AppData.

  • @rajatt95
    @rajatt95 3 роки тому +1

    Explained in a Excellent way.
    Really impressive :-)
    Definitely, I'm going to buy the course from UDEMY as well.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Glad you liked it :)
      Please look at these options to enroll directly instead of Udemy:
      courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899
      courses.letskodeit.com/courses/test-automation-bundle?coupon=UA-camRS29

  • @avishekbehera
    @avishekbehera 4 роки тому +5

    One question:
    why do we hardcode the TestClassusingListeners class in TestListeners.java ( Line48). Shouldn't we make it dynamic? We need to use the listener for many different Test classes.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +3

      Yes, when we have many test classes then we can create a BaseTest class where driver will be initialized. Then BaseTest class will be used here instead of a specific class and it will work for all the classes.

    • @avishekbehera
      @avishekbehera 4 роки тому +1

      Super... thank you for quick response. Appreciate it.

    • @pratyushaseetamraju7104
      @pratyushaseetamraju7104 4 роки тому +5

      Let's Kode It .. Hi.. Thanks much for the tutorial. I have a scenario to execute multiple TestClasses using TestNG.xml.As you suggested, I’ve created baseTest class and extended TestListener to the baseTest. Also, i have to attach logs in the report.Hence used extentTest .info (), for every tests in my Test Class. While i am executing the Test suite, i am getting Null Pointer exception at extentTest.info() step. Kindly take session on handling multiple test classes and also to attach logs in the report

  • @Ramkrishna-be9bn
    @Ramkrishna-be9bn 4 роки тому +1

    Nice explanation sir. I like it really helped me lot.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Glad you found it helpful, please like and share the video to spread the word :)
      If you like our videos, you can also think about enrolling in our courses. Please take a look at the course links in the description of the video.

  • @PraveenLingam-k4q
    @PraveenLingam-k4q Рік тому +1

    Excellent explanation and clear cut implementation. Kudos to your knowledge. I tried implementing your method but every time a method of TestListener is accessed it's opening a new chrome browser window and taking a blank screenshot in extent report.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Рік тому +2

      Glad it helped you :)
      Please help spread the word by liking and sharing the video.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Рік тому +1

      Send an email at letskodeit@gmail.com and I will send you the code files implemented in this video.

    • @PraveenLingam-k4q
      @PraveenLingam-k4q Рік тому +1

      @@LetsKodeItOfficial Issue got resolved, issue is with driver that is being accessed, I have extended baseTest class and accessed the driver from there, the issue is gone now. Thanks.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Рік тому +2

      @@PraveenLingam-k4q Glad you were able to figure it out :)

  • @satinderpal6261
    @satinderpal6261 4 роки тому +1

    Hi Sir, i want to add the logs for extent reports but now it is giving me an error of java null exception. plz help me with that

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Please send an email at letskodeit@gmail.com with details of the issue you are seeing.

  • @kshipra4504
    @kshipra4504 2 роки тому +2

    What is the difference between com.aventstack and com.relevantcodes dependencies of Extent Reports?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 роки тому +2

      They are both used in different versions.
      com.relevantcodes -> This is used in version 2
      com.aventstack -> This is used in version 4

  • @ashwiniv739
    @ashwiniv739 3 роки тому +1

    am trying to get screen shot attached to extent report. but not able to get the screen shot . Any help please. Am using extent aventstack package.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      You can reach out at letskodeit@gmail.com and I will send you the code I used.

  • @aniketdeokar559
    @aniketdeokar559 3 роки тому

    Thanks for the content..You explained it very well and in detail.. Thanks again ❤

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому

      Glad you found it helpful, please like and share the video to spread the word :)

  • @harshchoksi8471
    @harshchoksi8471 2 роки тому +1

    Thank you very helpful.
    Remade the video too much cut pasting across the classes creating confusion.
    Please also make a video on Spark Reporter with Listener with customize log for each test cases.

  • @shikhagera9633
    @shikhagera9633 4 роки тому +1

    Superb man!!!!, Thanks for this !

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Glad you liked it :)
      Please help by liking and sharing the video.

  • @nileshbhujang8705
    @nileshbhujang8705 2 роки тому +1

    Helpful content and great explanation but as you shown in TestListener class for failure method class name is hardcoded instead how to provide dynamic class name here as while scripting executing it will take running class name and capture the screenshot?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 роки тому +1

      They can easily be replaced with the BaseTestClass because all these things should go to BaseTestClass
      I recommend you enrolling in our Advanced Framework course, here is the discounted link: courses.letskodeit.com/courses/selenium-webdriver-advanced?coupon=UA-camRS899
      You can also explore the Complete Automation Bundle. Link in the description.

  • @NA-lq3in
    @NA-lq3in 3 місяці тому +1

    Thanks for the video. But Actually the report is not displaying the method name,so its kind of confusing which method passed/failed ect !!

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 місяці тому +1

      Report actually shows the method name, can you please explain what's the confusion?

  • @MahendiHasan
    @MahendiHasan 3 роки тому +1

    I got the screenshot for failed test cases in screenshot folder but it's not showing in the Extent report. I need your help...
    By the way, You have done great job....Thanks for your valuable information

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Glad you liked it :)
      Please help by liking and sharing the video.

  • @dikshasingh7356
    @dikshasingh7356 4 роки тому +1

    Can we create suite wise graphical representation of testcases in this extent report? If yes then how ?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      That's exactly what is shown in the video.
      Did you mean something else by Test Suite?

  • @pratgupta191
    @pratgupta191 4 роки тому +1

    hey thanks for the great video. one small issue, in case of failed test, the exception is displaying with full details, I do not have option to hide the details, it should be like you are getting, details should be visible only when clicked the see full report.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому

      Please double check the code with what I showed.
      Send an email at letskodeit@gmail.com and I will send you the code files.

    • @pratgupta191
      @pratgupta191 4 роки тому

      @@LetsKodeItOfficial sent you, please check.

  • @subbulakshmirajendran5150
    @subbulakshmirajendran5150 Рік тому +1

    Hi, The Video was very useful. I do have question, is there any particular reason that you use static method in ExtentManage why didn't use the non static method and create instance of ExtentManager, if possible could you explain me. I really appreciate it. Thank you

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Рік тому +1

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Рік тому +2

      We used the static method because we don't want to create a new instance of report for every method. Every test method in the same run will append to the same report.

    • @subbulakshmirajendran5150
      @subbulakshmirajendran5150 Рік тому +1

      @@LetsKodeItOfficial Thank you

  • @sainaveen831
    @sainaveen831 3 роки тому +1

    Your way explanation is good,
    I have a query. Suppose if there are multiple classes how to take screen shot for all of them, here you are taking one class and provided that class name in screenshot method

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      In that scenario, we should create a BaseTest Class and then use that.
      All Test Classes should inherit BaseTest Class.
      If you want to learn complete framework implementation, I would suggest you to take this course. You are really going to love it.
      courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899

  • @DinuVijayan
    @DinuVijayan 4 роки тому +2

    Thanks for the video. I found it really useful. I am using multiple test classes and all these classes extends a base class. But the driver initialization is done in a different class- Driverfactory and am calling the method from the class Driverfactory in base class. So if i give base class name in listener then will it get the driver instance since i haven't declared any driver instance in base class. Please advice.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +2

      Yes, it will work. Your DriverFactory probably has the methods to initialize the driver but they are initialized in the BaseTestClass when you call that method. BaseTestClass has the driver instance and if you use that in TestListeners then it will work.

    • @DinuVijayan
      @DinuVijayan 4 роки тому

      @@LetsKodeItOfficial Thanks.. It worked :)

    • @ravshanbekyusupov4582
      @ravshanbekyusupov4582 4 роки тому

      Dinu Vijayan, can you please explain me how did you do that. My driver is also in a different class, and i could not do it. It did not work for me. Thank you

    • @raghavendran2
      @raghavendran2 4 роки тому

      @@ravshanbekyusupov4582 simply where we initialize driver you should insert that class, simply in which class you use @beforeMethod use that class name

  • @igwe6547
    @igwe6547 3 роки тому +1

    Thanks for this amazing tutorial

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Glad you liked it :)
      Please help by liking and sharing the video.

  • @razvancalina6289
    @razvancalina6289 4 роки тому +1

    Hello,
    I have a question, in the first test you were able to use test log to put information in the @Test methods that was visible in the Report, how can you achieve the same with the Test Listeners?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      The intention is not to use that in @Test methods, this is what I have explained in the video also.

  • @mohamedilyas8610
    @mohamedilyas8610 3 роки тому +1

    I Have tried this one it gave me the best result as expected. Thanks for crystal clear explanation. How can we add screenshots to the logs for passed & fail. Can u help me with that. Pls.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Glad you found it helpful :)
      Please like and share the video and help us spread the word.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Please follow this video for attaching screenshots:
      ua-cam.com/video/Iden9bb6H8g/v-deo.html&lc=

  • @santhoshveluri4200
    @santhoshveluri4200 4 роки тому +1

    Hi Sir.. Thanks for the excellent content provided. I have a requirement of attaching screenshot for every page that we navigate through our test case and need to attach to extent report... How to do this.. pls let me know.. its bit urgent.
    Currently we are taking screenshot for only failures.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Hi Santhosh,
      You can take screenshot on success also, copy the same code in success method.

    • @santhoshveluri4200
      @santhoshveluri4200 4 роки тому +1

      @@LetsKodeItOfficial Thank you sir.

  • @proutprout-pc9kh
    @proutprout-pc9kh 3 роки тому +1

    I gone through the video and preared code but getting issues in extentTest.get().fail("" +.
    1.how will implemented in frame work for multiple test suite insted of hard code class name in the code and MediaEntityBuilder class not provided.
    please suggests.and send to my email ..

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      When there are multiple classes, then we use BaseTestClass instead of individual class names.

    • @rahultaralekar541
      @rahultaralekar541 3 роки тому +1

      Hi, could you please share how did you fix your error on extentTest.get().fail?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      @@rahultaralekar541 There is no error there, I have sent you the code also. Please go through it.

  • @lebeo8805
    @lebeo8805 3 роки тому +1

    Hello, thanks for this tutorial. But why timeline cannot active ? In this video, Your timeline no active, How you can fix it?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Glad you liked the video :)
      Please share the video with your friends to help us.
      Please let me know which timeline you are referring to.

  • @varaprasadkurra9343
    @varaprasadkurra9343 4 роки тому +1

    First of all thanks for your videos, lot of new information you have provided in your videos but I want to implement the same with POM and want to generate reports for multiple classes. Please make a video on POM with extent report.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +2

      Glad it helped you :)
      Please help spread the word by liking and sharing the video.
      If you like our content, you can also enroll in the complete course where POM is already covered.
      courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899

  • @ಸಂಜೆಸುದ್ದಿ
    @ಸಂಜೆಸುದ್ದಿ 4 роки тому +1

    Hi I was able to implement it after seeing this video but how can we do this for more than one test page.??

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +2

      Same code, you only need to change the name of the Test Class. You need to use BaseTest Class when you have more than one Test Class.

    • @ಸಂಜೆಸುದ್ದಿ
      @ಸಂಜೆಸುದ್ದಿ 4 роки тому +1

      Let's Kode It
      Hi thanks for the reply you mean to say we have to create a generic method for that ??

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +2

      @@ಸಂಜೆಸುದ್ದಿ No, when we have a framework we usually create a BaseTestClass which is inherited by all the Test Classes.
      We have all these details covered in this course:
      courses.letskodeit.com/courses/selenium-webdriver-advanced?coupon=Direct1099
      You can also enroll in the complete test automation bundle to get access to all the courses:
      courses.letskodeit.com/courses/test-automation-bundle?coupon=UA-camRS29

    • @ಸಂಜೆಸುದ್ದಿ
      @ಸಂಜೆಸುದ್ದಿ 4 роки тому +1

      Let's Kode It
      Thank you I will chk the course details and register 🙂

  • @kshipra4504
    @kshipra4504 2 роки тому +1

    Can you please show a demo on how we can integrate Extent report with logging information as well? For ex..this report only shows the TC as passed or failed with screenshot. What i am asking is the complete logging information in Report with proper steps like 1) URL entered 2) Login credentials entered 3) User landed onto the home page..

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 роки тому +2

      We should no do that, reporting is for high level management stuff. Logging is for engineers -> technical reasons, debugging, etc.
      Always keep them separate.

    • @kshipra4504
      @kshipra4504 2 роки тому +1

      @@LetsKodeItOfficial Thanks for reverting 👍

    • @harshchoksi8471
      @harshchoksi8471 2 роки тому

      @@LetsKodeItOfficial But our department was asked to enter the logs specifying the reason for failure. Attach screenshot. Specify the test description for each test case in the report.

  • @raghavendran2
    @raghavendran2 4 роки тому +1

    Hi sir Superb sir, but on test passed and failed how test-data will be displayed sir For example we provided name: somexxxxx but if that test failed we just able to see only exception but how test data for failures was displayed sir please give syntax for that sir

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Sorry, I didn't understand your example "For example we provided name: somexxxxx".
      Which test data you want to display?

  • @kazuhirohagi7094
    @kazuhirohagi7094 4 роки тому +2

    Hello, thank you for this tutorial. I did everything step by step but the screenshoot was generated in report only first time. Every next execution there is no png file in report. Do you use any specific libs in pom file?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +2

      Hi,
      I used libs which are shown in the video series. No other libs are used.
      Send an email at letskodeit@gmail.com and I will send you the code files.

    • @kazuhirohagi7094
      @kazuhirohagi7094 4 роки тому +1

      done :)

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      @@kazuhirohagi7094 I have sent you the code files.

    • @kazuhirohagi7094
      @kazuhirohagi7094 4 роки тому +1

      @Let's Kode It Thank you

    • @kazuhirohagi7094
      @kazuhirohagi7094 4 роки тому +1

      I think my case is more complicated. When I’m using „MediaEntityBuilder.createScreenCaptureFromPath(„screenshots/”).build()); - working but I don’t wanted to have png file hardcoded and I need this to be taken aften the file is executed(generated) dynamically. The code „MediaEntityBuilder.createScreenCaptureFromPath(path).build()); - is not working.
      I have in pom.xml: - testng 6.14.3, - selenium-java 3.141.59, - extentreports 4.1.2 (tried already with 4.0.0, 3.1.5, 3.0.0), - ashot 1.5.4, - extentreports-testng-adapter 1.0.7
      Additionally I have the „com.aventstack.extentreports.reporter.ExtentHtmlReporter” is deprecated info message.
      If anyone can help I will be gratefull.

  • @rockdrotl
    @rockdrotl 4 роки тому +1

    If i have a lot of test suites how can I share the instance of driver for all those ones?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Hi,
      When we have multiple Test Classes, then we create a BaseTestClass and all Test Classes should inherit from BaseTestClass.
      TestListener Class will use BaseTestClass for driver instance.

  • @mgk4143
    @mgk4143 3 роки тому +1

    Thanks for such a nice tutorial. I have one question, how we can use test.log to print logs in report using listeners.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      This is also shown in the lectures. If you are asking about every step, then that needs to go in Test Methods and it should not be done as I have already explained in the videos.

    • @mohamedilyas8610
      @mohamedilyas8610 3 роки тому

      Do u use any wrapper class for predefined methods?

    • @mohamedilyas8610
      @mohamedilyas8610 3 роки тому

      @djdj

  • @supriyamude
    @supriyamude Рік тому +1

    you must make more of such videos on each topic.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  Рік тому +1

      Glad you found it helpful :)
      If you like our way of teaching, please consider taking full course on our website. You can find the discounted links in the video description.

  • @lioralalouf6721
    @lioralalouf6721 2 роки тому +1

    Where can we download the code sir?

  • @govindreddy180
    @govindreddy180 3 роки тому +1

    How to add categories to report..?

  • @HagayHazan
    @HagayHazan 3 роки тому +1

    Great video couple comments.
    The second video does not work .
    Also - can you record a video on using methods in POM with Extent Report?
    Thank you

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Can you please explain what you meant by "second video doesn't work"?
      Haven't heard this from anyone else.

  • @akankshyanegi8263
    @akankshyanegi8263 4 роки тому +1

    We can replace ExtentHtmlReporter with ExtentSparkReporter as ExtentHtmlReporter is deprecated from V4.1.3

  • @divakarkannan2372
    @divakarkannan2372 3 роки тому +1

    it's more helpful

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +2

      Glad you liked it :)
      Please help by liking and sharing the video.

    • @divakarkannan2372
      @divakarkannan2372 3 роки тому +1

      @@LetsKodeItOfficial it's working fine, it's more helpful.

  • @rahulpingale5317
    @rahulpingale5317 4 роки тому +1

    Thanks for the Extent report videos.
    If I want to use extent report in my test methods then how should i do that?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      You should not be using Extent Reports in Test Methods. That is not helpful, it will make your report bulky and we don't usually use Extent Reports for debugging. This is why we don't need a lot of details in them. They should only be used from management and showing status to other teams only.

    • @rahulpingale5317
      @rahulpingale5317 4 роки тому +1

      @@LetsKodeItOfficial okay..Thanks for the explaination

    • @TheAllanazarpour
      @TheAllanazarpour 2 роки тому

      @@LetsKodeItOfficial how and where would you suggest to store all the logs from the Test Methods?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 роки тому +1

      @@TheAllanazarpour Logs should be saved in log files generated by Log4j2.

  • @rajsinghal05
    @rajsinghal05 2 роки тому +1

    is it on github ?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  2 роки тому +1

      Not yet on GitHub.
      You can email at letskodeit@gmail.com for code.

  • @vaishnavikacham4580
    @vaishnavikacham4580 4 роки тому +1

    How to add screenshots in an XML report?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      That would a different topic. Extent Reports are HTML Reports, Extent Reports are not XML Reports.

  • @AshutoshTiwari28
    @AshutoshTiwari28 4 роки тому +1

    Thankyou for the video but if we have multiple test Class then how we WebDriver driver=((TestClassUsingListners)result.getInstance()).driver;
    like LoginPageTestCase, SignupTestCase, HomePageTestCase
    @Override
    public void onTestFailure(ITestResult result) {
    String exceptionMessage = Arrays.toString(result.getThrowable().getStackTrace());
    extentTest.get().fail("" + "Exception Occured, click to see details:"
    + "" + exceptionMessage.replaceAll(",", "")+"
    ");
    ->>>>>WebDriver driver=((TestClassUsingListners)result.getInstance()).driver;
    String path=takeScreenshot(driver,result.getMethod().getMethodName());
    try {
    extentTest.get().fail(""+"Screenshot of failure"+"",MediaEntityBuilder.createScreenCaptureFromPath(path).build());
    } catch (Exception e) {
    extentTest.get().fail("Test failed, cannot attach screenshot");
    }
    String logText = "Test Method " + result.getMethod().getMethodName() + " Failed";
    Markup markup = MarkupHelper.createLabel(logText, ExtentColor.RED);
    extentTest.get().log(Status.FAIL, markup);
    }

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      When we have multiple classes, we implement a BaseTestClass and then use it, instead of using individual classes.
      You can enroll in this advanced framework level course to learn framework integration:
      courses.letskodeit.com/courses/selenium-webdriver-advanced?coupon=Direct1099

  • @yforyou1342
    @yforyou1342 3 роки тому +1

    Can you please cover a topic called log4j implementation.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      It's covered in the course.
      courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899

  • @kiranKiran-dq9lg
    @kiranKiran-dq9lg 4 роки тому +1

    How to add test step logs to extent report

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Test steps should not be logged to Extent Report. I have explained in this series. You should watch the other two lectures of Extent Reports before this one.

    • @kiranKiran-dq9lg
      @kiranKiran-dq9lg 4 роки тому +1

      @@LetsKodeItOfficial Thanks for the quick reply

  • @mallareddyganji3245
    @mallareddyganji3245 3 роки тому +1

    Hi Great explanation could you share same with your git repository? Thanks

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      Glad you liked it :)
      Please help by liking and sharing the video.
      Send an email at letskodeit@gmail.com and will provide you the code.

  • @vaishnavikacham4580
    @vaishnavikacham4580 4 роки тому +1

    How to implement an XML Report?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Hi,
      There is no need to implement XML Reports. Default reports are already available from TestNG.
      Now a days, we are moving towards more advanced reports like Extent Reports.

  • @kshipra4504
    @kshipra4504 2 роки тому +2

    Hi! Can you share the code ?

  • @ArunKumararunpgb
    @ArunKumararunpgb 3 роки тому +1

    Can u please share these Extend Reports code

  • @prathibhachandkapure5863
    @prathibhachandkapure5863 4 роки тому +1

    Superb explanation. Can you share the code

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому

      Please send an email at letskodeit@gmail.com, will send you the code.
      It will be great if you can like and share the video with your friends.

  • @manikannanmarimuthu9232
    @manikannanmarimuthu9232 4 роки тому +1

    Please help to share videos about Database testing

  • @amitdhankar6432
    @amitdhankar6432 4 роки тому +1

    can you upload the files here...

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      There is no way to upload files on UA-cam.
      Please send an email at letskodeit@gmail.com

    • @amitdhankar6432
      @amitdhankar6432 4 роки тому +1

      @@LetsKodeItOfficial Ok Thanks will drop you mail for that.
      I also need your help in implementing logging in POM and with Listeners. Can you share code for that also. I will be so thankful to you.

    • @amitdhankar6432
      @amitdhankar6432 4 роки тому +1

      Hi i have sent you mail. Please suggest

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      @@amitdhankar6432 I will provide the code for this.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      @@amitdhankar6432 Replied there.

  • @ravi_nelluri
    @ravi_nelluri 4 роки тому +1

    Can we get the code for download ?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      Let me know your email and I will send it to you. In future, I will create a GitHub repo for UA-cam videos.

    • @ravi_nelluri
      @ravi_nelluri 4 роки тому +1

      @@LetsKodeItOfficial Thanks . one question here as per the video we are importing "TestclassUsingListeners" java class file to TestListeners java class file . If we have another java class for which we need to extend the this implementation then how we need to passing driver reference for the new java class to TestListeners java file ? My email id ravi14.nelluri@gmail.com

    • @ravi_nelluri
      @ravi_nelluri 4 роки тому +1

      @@LetsKodeItOfficial I am getting NullPointerException at "ExtentTest test = extent.createTest(result.getTestClass().getTestName() + " :: " +
      result.getMethod().getMethodName());" while running the script ? any clue ?

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +2

      @@ravi_nelluri In that scenario, we need to implement a BaseTest Class where driver initialization will be done and all the test classes will inherit from BaseTest Class. TestListeners Class will get driver instance from BaseTest Class.
      You can try to explore this course, it covers framework in a lot of detail:
      learn.letskodeit.com/p/selenium-webdriver-advanced-framework/?coupon_code=95OFF

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +2

      @@ravi_nelluri I have sent you the code files. Please double check your code with them line by line.

  • @manikolla993
    @manikolla993 4 роки тому +1

    Hi Anil,
    thanks for your efforts & passion in creating these videos. I liked your explanation, it's so clear and always focusing on the problem statement which made your videos look so interesting.
    ExtentHtmlReporter is now deprecated, do we have anything alternative for this?
    Would you mind emailing this code to my email address?
    thanks,
    Manikanth Kolla

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      You can replace it with ExtentSparkReporter.
      You can email me at letskodeit@gmail.com for the complete code.

  • @shikhagera9633
    @shikhagera9633 4 роки тому +1

    can you also do this with cucumber??

  • @amitdhankar6432
    @amitdhankar6432 4 роки тому +2

    Thanks for the amazing content. I need your help in implementing logging in POM and with Listeners. Please send the code on my mail which I have sent you....Or make a video on that.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  4 роки тому +1

      I have already replied to you on email.

    • @aniketdeokar559
      @aniketdeokar559 3 роки тому

      @@LetsKodeItOfficial Hi I have followed the exact way.. After running testng.xml 'reports' folder is created but the report is not getting generate can you please help.

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      @@aniketdeokar559 Please send an email at letskodeit@gmai.com and I will send you the code files discussed in the video.

    • @aniketdeokar559
      @aniketdeokar559 3 роки тому +1

      @@LetsKodeItOfficial thanks for the reply I found the mistake now its working as expected..Thank you so much. Keep posting new content it really helps ❤. Please make video on mock data generator and how to implement webdriver and selenium methods in generic way..❤❤

    • @LetsKodeItOfficial
      @LetsKodeItOfficial  3 роки тому +1

      @@aniketdeokar559 You can actually enroll in our complete course where I discussed complete Selenium WebDriver Framework with generic methods and data driven testing. Here is the link if you are interested:
      courses.letskodeit.com/courses/selenium-webdriver-advanced?coupon=GITCODE899