"Thanks to the power of infinity". I have seen 100 to 150 to 200 hours of selenium courses listed in many learning portals, which gave me an initial idea of what selenium is all about but this lecture series on selenium is just the finest essence of all good stuff seen there so far. Great explanation in crisp way. Thanks a lot. I wish to follow all your courses and recommend to friends of mine to watch your videos, who have interest in learning. Please help by posting many great works like this. All the very best. :)
@RaghavPal3 жыл бұрын
Hi Balaji, So happy to see this, Can see all my work here - automationstepbystep.com/
@hayaulislam4 жыл бұрын
Ma sha ALLAH - it helps me a lot. Stay Blessed
@RaghavPal4 жыл бұрын
Glad to hear that
@monicagoyal82253 жыл бұрын
We can not get as easy and simple video on extent report as this is.Great work.Thanks Raghav.
@RaghavPal3 жыл бұрын
Most welcome Monica
@monicagoyal82253 жыл бұрын
@@RaghavPal Hi Raghav, I am totally stuck in creating screenshot that too date wise in extent report and using some utility code.Can you pls share some easy way of doing it?
@RaghavPal3 жыл бұрын
Hi Monica, not sure, will need to check online
@monicagoyal82253 жыл бұрын
@@RaghavPal Pls create and upload then plz as you are having expertise on making complex stuff simple.
@RaghavPal3 жыл бұрын
I will do, humbled to see your message
@nikhiljadhavkennovation4668 Жыл бұрын
Very Simple explanation. Randomly I played but it is worth watching your tutorial.🎉
@RaghavPal Жыл бұрын
Thanks Nikhil
@akshaymore56553 жыл бұрын
Thanks a lot Raghav!
@RaghavPal3 жыл бұрын
Most welcome Akshay
@divakarkannan23723 жыл бұрын
Good Info Bro, Thanks for updates
@RaghavPal3 жыл бұрын
Always welcome Divakar
@suchetavyavahare17433 жыл бұрын
Thank you so much. It's very useful to us . Extremely easy and knowledgeable. Thanks for sharing
@suchetavyavahare17433 жыл бұрын
Can you please share the failed test cases screenshot with TestNG
@RaghavPal3 жыл бұрын
yes, we can, will check some examples
@automation4u9682 жыл бұрын
Very helpful..Excellent job dear.
@RaghavPal2 жыл бұрын
Most welcome
@ShubhamSehajpal5 жыл бұрын
Bro I request you to please explain also what you are doing, you are just reading out the statements as they are! Word to word meaning if you give, your videos will become viral too coz you are too good! :)
@RaghavPal5 жыл бұрын
I will try to add more explanation Shubham
@DucNguyen-xn5bd5 жыл бұрын
Hi Raghav, there are just 2 way of report in one run? Extent report and TestNG report, I don't know what relative between them.
@RaghavPal5 жыл бұрын
They are diff libraries, TestNG is mostly a testing framework and Extent Reports is a reporting library
@radhakoshatwar53424 жыл бұрын
Hi Raghav, This session was really helpful. Can you answer my one question: Is it good practice to use Log4j and Extent report at the same time?
@RaghavPal4 жыл бұрын
You can, extent report is to add results in a report. Logging you can use for more deeper troubleshooting
@iburahim7864 жыл бұрын
Hi Raghv, Can i possible to connect to db or some local storage to show the build wise automation report ? even if any other framework in market also, please suggest.
@RaghavPal4 жыл бұрын
Hi, I believe you will need to use tools like grafana
@davidsierrafernandez17445 жыл бұрын
Hi, I have a question. In my tests files(the ones with the extension .java that do the tests) there are a lots of tests whose title (the one that goes inside of createTest function) has strange characters like accents (á, é, è,etc.) and once the extent.html report is generated it displays them as a question mark. What can I do to solve it?
@RaghavPal5 жыл бұрын
Hi David, do you mean that your test case title has some characters and you need them to be displayed as it is in the extent reports. Check this github.com/anshooarora/extentreports-java/issues/65 You can also search for "extent reports how to do encoding"
@akshaymore56553 жыл бұрын
@Raghav where I can find those screenshots in my project folder I am not able to find it. By default where those screenshots were supposed to be saved? Plz help me
@RaghavPal3 жыл бұрын
Hi Akshay, it should be in your target folder
@akshaymore56553 жыл бұрын
@@RaghavPal Okk thanks
@shilpashravge80833 жыл бұрын
very good explanation. Thanks a lot !!
@RaghavPal3 жыл бұрын
You are welcome Shilpa
@vinodkumar-dx9ky4 жыл бұрын
I am getting null pointer exception at the starting of the second Test class where we are creating a test name using extentLogger=extent.createTest("login3"); how to resolve this?
@RaghavPal4 жыл бұрын
Hi Vinod, I will need to see the logs for this
@deepikasingh40326 жыл бұрын
Hello Raghav, Firstly the entire playlist is very helpful. Thanks for that. I made the use of these 2 loggers: test.pass("details", MediaEntityBuilder.createScreenCaptureFromPath("screenshot.png").build()); test.addScreenCaptureFromPath("screenshot.png"); I need to know where I can find these screenshots? I hope to get a reply from you. Brgds, Deepika Singh
@RaghavPal6 жыл бұрын
Hi Deepika, you're welcome. pls check in your project folder
@anuranbhattacharya99382 жыл бұрын
Hi, How do we modify the testng.xml file in test-output/old/Default Suite/ in a maven project so that I can include different classes in testNG run? I was thinking of moving the setup and teardown methods to a new class
@RaghavPal2 жыл бұрын
Hi Anuran, You can create multiple testing.xml files as per your need and run the one you need as required
@sarithapippari63185 жыл бұрын
Hi Raghav, thank you very much for all the tutorial videos that you do. I have tried using the extent reports to capture the screenshot but they don't seem to get create any where. Could you please make a video tutorial for capturing the screenshot and showing it in the report? Thank you again.
@RaghavPal5 жыл бұрын
Hi Saritha, sure I will do.
@sarithapippari63185 жыл бұрын
thank you@@RaghavPal
@bornfree74164 жыл бұрын
Hi Raghav, is there any reference for the code in the video?
@RaghavPal4 жыл бұрын
Yes, can find code here github.com/Raghav-Pal/SeleniumJavaFramework1
@ravitummala58295 жыл бұрын
HI Raghav, can you post a video of extent reports with parallel execution..? Somehow I am having errors with Parallel Execution with testng and don't see any help online. Thanks in advance.
@RaghavPal5 жыл бұрын
Hi Ravi, hope you have already seen exiting testng videos here kzbin.info/aero/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa I will also try to add on this session
@checkmate77805 жыл бұрын
Thanks for the video. Could you please explain how we can use it with the page object model. An elaborated video on the same will be helpful.
@RaghavPal5 жыл бұрын
Hi Mimi, I have explained about POM in this series, There will not be any change in the POM structure, You will just add the log statements of extent reports in your test.kzbin.info/aero/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa
@RolexsRealm.202304 жыл бұрын
Thank you for the wonderful series of informative videos. How does the report looks like if the test case is actually fails?
@RaghavPal4 жыл бұрын
Hi Kisho, May be I have shown that in some session but do not recall. You can try failing and check.
@yashuniq54333 жыл бұрын
hi raghav, how to open extent report automatically after executing the testcases. because I want automate extent report too.
@RaghavPal3 жыл бұрын
You will need to get the file or url and open it
@Bigorange484 жыл бұрын
Thanks for being such a great contributor to this community! Do you have any plans to update the ExtentReports videos with the relase of 4.x.x?
@RaghavPal4 жыл бұрын
Hi Pete, yes I will have do the updates in some time.
@shreyasms67866 жыл бұрын
It would be great if you make a video for failed test cases
@RaghavPal6 жыл бұрын
I will do it soon Shreyas
@shreyasms67866 жыл бұрын
@@RaghavPal thanks for the reply Raghav.
@vinayvykuntam35035 жыл бұрын
have you done this video
@sunnykanna73734 жыл бұрын
Hi Raghav, Can you share a video on extent reports in TestRunner.
@RaghavPal4 жыл бұрын
I will check Sunny
@avyukthghana88082 жыл бұрын
Hi sir....shall we export the output into Excel file...like maintaining report
@RaghavPal2 жыл бұрын
Yes, you can
@97457549046 жыл бұрын
@Automation Nice video,have a doubt, Is it a good way to add info steps.in our testcases??
@RaghavPal6 жыл бұрын
Hi Jino, I did not get you completely. You can add steps in test cases. Are you looking at the framework model
@97457549046 жыл бұрын
@@RaghavPal if we add log.info(click on account link) driver.findelemnt(By.name(account).click(): if we add this info steps in each step,is it a good practice in our framework
@RaghavPal6 жыл бұрын
Yes, you can do that, it will help in troubleshooting during errors.
@97457549046 жыл бұрын
@@RaghavPal Thanks for replying
@007RedJD4 жыл бұрын
Hi Sir, Screenshot are not getting generated. Can you look into that?
@RaghavPal4 жыл бұрын
Hi, I will need more details and error message, logs
@mounael8963 жыл бұрын
Thank you Raghav for your efforts. How do you do indentation of multiple lines in Eclipse please ? because Ctrl + (arrow) is not working for me.
@RaghavPal3 жыл бұрын
Hi Mouna, you can select all and press Ctrl+/
@parminderkaur54712 жыл бұрын
This session was really helpful. Can you help me on below? If I have different test case classes, then multiple reports are not getting generated. Only one report gets generated for complete testNG suite execution.
@RaghavPal2 жыл бұрын
Hi Parminder, you can use testng.xml for this
@sandhyajangra2571 Жыл бұрын
I am not able to add maven dependencies. Mave dependencies folder is not showing in the list.
@RaghavPal Жыл бұрын
There are a few reasons why the Maven dependencies folder might not be showing in the list. Here are a few things you can check: 1. Make sure that you have Maven installed and configured correctly. 2. Make sure that the Maven project is properly imported into your IDE. 3. Make sure that the Maven dependencies folder is enabled in your IDE. Here are some instructions on how to do each of these things: 1. To check if Maven is installed and configured correctly, open a command prompt and type `mvn --version`. If Maven is installed and configured correctly, you should see the Maven version number printed to the console. 2. To import a Maven project into your IDE, follow the instructions for your specific IDE. For example, in IntelliJ IDEA, you can import a Maven project by clicking on `File` > `New` > `Project from Existing Sources` and selecting the Maven project directory. 3. To enable the Maven dependencies folder in your IDE, follow the instructions for your specific IDE. For example, in IntelliJ IDEA, you can enable the Maven dependencies folder by clicking on `View` > `Tool Windows` > `Maven Projects`. If you have checked all of these things and the Maven dependencies folder is still not showing, you can try the following: 1. Restart your IDE 2. Invalidate the Maven cache 3. Delete the Maven project and import it again If you are still having problems, you can try searching for help online or contacting the Maven support team Here are some additional tips for adding Maven dependencies to your Selenium Java project: * When adding a Maven dependency, make sure to specify the correct version of the dependency. * You can use Maven to manage the dependencies of your Selenium Java project. * Maven can automatically download and install the dependencies of your project. * Maven can also be used to build and deploy your Selenium Java project.
@aishwaryakala96536 жыл бұрын
What is the difference between extend reports and testng reports(html reports). Both r used to generate the results right?
@RaghavPal6 жыл бұрын
Hi Aishwarya, yes both are used to generate results. Its the format and features that differ. Extent reports provide a good html format and can also customize the messages we want to log in reports
@aishwaryakala96536 жыл бұрын
thanks for the reply raghav
@gowthamirasamsetti75972 жыл бұрын
i am getting an error may i know how to solve it --> "The method attachReporter(ExtentHtmlReporter) is undefined for the type ExtentReports"
@RaghavPal2 жыл бұрын
Hi Gowthami, this can help - github.com/anshooarora/extentreports-java/issues/898
@vipin54106 жыл бұрын
Thanks for your another informative video. Can you please create a video on updating the test result on Extent report automatically based on the test execution result with the help of Listeners.
@RaghavPal6 жыл бұрын
Hi Vipin, will create a session on TestNG listeners soon.
@tasmitamanna85023 жыл бұрын
Hi Raghav thanks for the video.Can we extent report for cross browser testing running in parallel inside one reporting file?
@RaghavPal3 жыл бұрын
Hi Tasmi, I will check on this
@tasmitamanna85023 жыл бұрын
@@RaghavPal Thank you so much Raghav that will be very helpful for us if you create one video on this
@suryamariraj87282 жыл бұрын
Hi Raghav, I'm using the extent report in my code. After getting the report, for pass & fail case the report shown as PASS. Please guide
@RaghavPal2 жыл бұрын
Hi Surya, difficult to say anything without looking at the code and setup, Suggest you to check the process and steps again
@omairkhan8866 Жыл бұрын
I have added the setup and after ctrl+shift+o is it still showing error for ExtentHtmlReporter, I can see package is not imported automatically and when I am adding it by myself giving me error, please help.
@RaghavPal Жыл бұрын
Omair To create reports using Extent Reports in Selenium Java on Eclipse IDE, you will need to add the following dependencies to your pom.xml file: XML com.aventstack extentreports 5.0.9 com.aventstack extentreports-reporter-html 5.0.9 Once you have added the dependencies, you will need to import the following packages: Java import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.ExtentTest; import com.aventstack.extentreports.reporter.ExtentHtmlReporter; You can then create an ExtentHtmlReporter object and pass in the path to where you want to save the report: Java ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter("report.html"); Next, you need to create an ExtentReports object and pass in the ExtentHtmlReporter object: Java ExtentReports extent = new ExtentReports(); extent.attachReporter(htmlReporter); Now, you can create ExtentTest objects for each of your test cases: Java ExtentTest test = extent.createTest("Test Case 1"); You can use the ExtentTest object to log the status of your test case, as well as any additional information that you want to include in the report: Java test.log(Status.PASS, "Test Case 1 passed"); Finally, you need to flush the extent report: Java extent.flush(); This will generate the report at the path that you specified. If you are getting an error for ExtentHtmlReporter, it is likely that you have not imported the correct package. Make sure that you have imported the following package: Java import com.aventstack.extentreports.reporter.ExtentHtmlReporter; If you are still having problems, you can try the following: * Restart Eclipse. * Clean and build your project. * Check your pom.xml file to make sure that you have added the correct dependencies. * Contact Extent Reports support for help. I hope this helps
@chromegames25263 жыл бұрын
Hi Raghav! Nice video. I have one request. I need to generate the report.html file dynamically. It should pick suiteName from the testing.xml as the report.html file. I have almost achived it. But, the generated reports are showing up the results only for the last test. I have multiple tests in my testing.xml file. Any help on this would be appreciated! Thanks in advance!
@RaghavPal3 жыл бұрын
Hi, there may be some level of customisations possible, I am not completely sure if all that you need can be done directly. Some online resources like this can help : stackoverflow.com/questions/51796796/customization-of-extent-reports-using-testng-java
@immuind20093 жыл бұрын
Hello Rahav when iam running both ways java application& TestNG not generating report some compilation error :java.lang.Error: Unresolved compilation problem: VERSION_2_3_29 cannot be resolved or is not a field is coming can you explain. Thank you.
@RaghavPal3 жыл бұрын
Hi Imtiaz, do you see any caused by section in logs
@immuind20093 жыл бұрын
@@RaghavPal no errors raghav I add 4.1.0 version in console it’s showing as version 2_3_29 I didn’t get this
@RaghavPal3 жыл бұрын
will need to check online, will update if I find something
@vinivarghese2133 жыл бұрын
Hi Raghav Am getting error while tring to add extent reports ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter("extent.html"); ExtentReports extent = new ExtentReports(); extent.attachReporter(htmlReporter); while adding extent.attachReporter(htmlReporter); attachReporter is highlighted in red and on mousehover it is showing create new method.ANy idea why this is happening. (Tried in version 3.1.5) Triedin latest version also with ExtentStakReporter still same issue
@RaghavPal3 жыл бұрын
Hi Vini, Pls check and compare the version of Extent report
@RaiderIQ14 жыл бұрын
Thank you very much for all your helps and tutorials. I've learned so many thanks to you. I have a question about cookies. How do we do to disable all cookies using webdriver?
@RaghavPal4 жыл бұрын
Hi Haider, this can help stackoverflow.com/questions/18106588/how-to-disable-cookies-using-webdriver-for-chrome-and-firefox-java
@RaiderIQ14 жыл бұрын
@@RaghavPal Thank you Raghav it works perfectly for Firefox but not for Chrome
@Playlist-cj9ct4 жыл бұрын
You are awesome, thanks so much for rich knowledge :-)
@RaghavPal4 жыл бұрын
So nice of you Namit
@100janyam Жыл бұрын
Why did we not get images of screenshots in the report?
@RaghavPal Жыл бұрын
will need to check on that Sowjanya Can take help from some online examples too
@anayamandarpatil913 жыл бұрын
Hello Raghav ,Thanks for wonderful video .just one question after execution of all my test cases I need to send this report to my email id with all details.Configured Jenkins for automatic generation of the report but not sure how to mail the report with all details. My second question is if i need to achieve parallel execution without flushing the existing extent report how could we achieve that. Any help would be appreciated Thanks in Advance
@RaghavPal3 жыл бұрын
Hi Anaya, you will need to use some email plugins on jenkins, You can watch some related videos in the jenkins series automationstepbystep.com/ For parallel testing, this can help stackoverflow.com/questions/52811017/extent-report-issue-parallel-testing
@ayebo156 жыл бұрын
If you get an error, you need to add the following to either your pom.xml or as JAR file to your build path: jsoup.org/download bitbucket.org/xerial/sqlite-jdbc/downloads/ mvnrepository.com/artifact/org.mongodb/mongodb-driver mvnrepository.com/artifact/org.mongodb/bson/3.8.2
@ParagOak6 жыл бұрын
Perfect guide. You have covered all the basics while creating the report , thanks. Is it possible you to take usecase 1 for simple and 2nd for bit complex to create pass / fail report which is based on test execution? I mean create a generic method for pass / fail report and call it for every testcase. This will help a lot for every one.
@RaghavPal6 жыл бұрын
Hi Parag, sure, I will soon create a sample mini project and publish it.
@ParagOak6 жыл бұрын
Automation Step by Step - Raghav Pal hey thanks that will be great help for every one. Thanks once again
@ParagOak6 жыл бұрын
@@RaghavPal Hey Raghav, I know you must be busy with your routines. And I really don't wanted to disturb it. But I'm eagerly waiting for your end to end mini project with framework. One suggestion for this mini project, please cover at least 2-3 page navigation , how to display testcase steps in extent report. Thanks for all efforts you have taken for all videos. Really appreciated. 🤘
@ayzu76703 жыл бұрын
I did not understand this one. Like if I have 5 classes with each having 6-7 @Test blocks then I need to copy this code multiple times for each one?
@RaghavPal3 жыл бұрын
Hi @Test will add a new test in the report. So based on how you want to show the report can arrange it
@ayzu76703 жыл бұрын
@@RaghavPal I don't quite understand it. Like do we not have to write the line as you did for each case? If not then is it like once in a program or package or how?
@dsandeep94435 жыл бұрын
How can we publish the klov url .. so that all my team can access the same.
@RaghavPal5 жыл бұрын
Hi Sandeep, I have not tried it. Will have to check online
@dsandeep94435 жыл бұрын
@@RaghavPal ok thank for instant response... The end goal in having the reports in dynamic pattern is to share with client.. could you please help me with that
@RaghavPal5 жыл бұрын
Hi Sandeep, what exactly do you refer to by dynamic pattern? Do you need real-time reports
@dsandeep94435 жыл бұрын
@@RaghavPal am able to access the reports using local host url.. but when I share the url with my team who are on the same network.. they couldn't access it. I have replaced the local host with IP. Still they couldn't access it.
@RaghavPal5 жыл бұрын
Okay, your ip should be available publicly or on the network where your are sharing and the ports should be open for http traffic. You can take help from your network team
@usmankarim52365 жыл бұрын
Hi Raghav how i can use this in multiple classes??
@RaghavPal5 жыл бұрын
Hi Usman, you can initialize ExtentReport and then for every test case you can create a new ExtentTest object. Make sure to flush at the end of all test cases
@nishthasharma65745 жыл бұрын
@@RaghavPal Hello Raghav, I have multiple classes and I am running all the classes in single suite, then how can I get a single extent report for all the classes?
@RaghavPal5 жыл бұрын
To get a single report you can initialize Extent report before the start of all clases and then flush the report at the end. You can use TestNG beforeClass and afterClass funcitons
@Shahid-rs3xf4 жыл бұрын
"The type ExtentHtmlReporter is deprecated " i am getting this and the Extend class is cutted
@RaghavPal4 жыл бұрын
Hi Shahid, did you try with the same version and process as shown. Will have to check more on this online.
@DannyZaharia4 жыл бұрын
I ended up using Klov - ExtentReports www.swtestacademy.com/klov-extentreports-test-reporting/
@hima38674 жыл бұрын
Note:ExtentHtmlReporter has been deprecated. ExtentSparkReporter is the default reporter starting version 4 and it now supports SPA-style view by default. I got this from Github So you have to import ExtentSparkReporter. I tried and its working.
@sagarsjdjfn3 жыл бұрын
unable to see screenshots - any idea ?
@RaghavPal3 жыл бұрын
will need to see the setup and logs
@sandhyajangra2571 Жыл бұрын
I am not able to add maven dependency.
@RaghavPal Жыл бұрын
Hi Sandhya, I will need more details on this
@mats_3D5 жыл бұрын
Hi Raghav Pal who created a extent report with cucumber steps? i need know for my jobs please help
@RaghavPal5 жыл бұрын
Not aware Matias, you can get some online help
@yuvarajamech5 жыл бұрын
I need to get a individual report of my test execution with seperate name...by this code, if we execute our test case one more time also, it is overwritting on the previous report only... Show the line of code for that also
@RaghavPal5 жыл бұрын
Hi Yuva, you can add code to append timestamp in report name so you can a new report on every run.
@bartomiejkmita51184 жыл бұрын
I really like your videos and they are very helpful. I can see one disadvantage. Your code is very messy and it might cause learn some wrong habits. (if you keep it as simple as possible for beginners I can understand that) You can improve that and it will be much better :) Anyway it is very good content! :)
@RaghavPal4 жыл бұрын
Thanks for the feedback, Yes I try to keep it simple for Beginners, but will improve on this
@sonammishra56643 жыл бұрын
How to use the encapsulation in selenium
@RaghavPal3 жыл бұрын
I will plan a session. For now just to understand the concept check this kzbin.info/www/bejne/kIrEkIGfhLqHh9E
@abhinandangowda48295 жыл бұрын
Hello Raghav , Can please show Extent Report with Junit also Please
@RaghavPal5 жыл бұрын
I will check on that Abhinandan, For now pls check the documentation
@batman788452 жыл бұрын
Please do a small project with full framework from scratch in POM. That will really help poeple to 'fake' real time experiance and switch carrer from manual to autoamtion. sir.
@RaghavPal2 жыл бұрын
Hi Arun, I will plan a session, but do not suggest to fake the exp
@batman788452 жыл бұрын
@@RaghavPal yes sir. Not really fake, but just to have a real time project experience feeling. Confidence
@myWayIn6193 жыл бұрын
Oh man the test does pass but the steps is still "0" , any advice?
@RaghavPal3 жыл бұрын
Hi Frank, what do the logs say
@vasantvarma64065 жыл бұрын
You should have explained with multiple test cases and with using testng.xml
@RaghavPal5 жыл бұрын
Hi Vasant, will try to add more examples
@dibakardey60974 жыл бұрын
You didn't explain how to take the screenshot for each step and attach it in extent report