"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. :)
@@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?
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! :)
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.
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.th-cam.com/play/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa.html
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?
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"
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
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.
Hi Ravi, hope you have already seen exiting testng videos here th-cam.com/play/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa.html I will also try to add on this session
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
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.
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.
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
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.
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?
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
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
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.
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.
@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
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.
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
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
@@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
@@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?
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.
@@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. 🤘
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
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.
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
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!
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
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?
@@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
@@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.
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
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! :)
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
@@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?
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
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.
"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. :)
Hi Balaji, So happy to see this, Can see all my work here - automationstepbystep.com/
Ma sha ALLAH - it helps me a lot. Stay Blessed
Glad to hear that
We can not get as easy and simple video on extent report as this is.Great work.Thanks Raghav.
Most welcome Monica
@@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?
Hi Monica, not sure, will need to check online
@@RaghavPal Pls create and upload then plz as you are having expertise on making complex stuff simple.
I will do, humbled to see your message
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! :)
I will try to add more explanation Shubham
Very Simple explanation. Randomly I played but it is worth watching your tutorial.🎉
Thanks Nikhil
Thanks a lot Raghav!
Most welcome Akshay
Very helpful..Excellent job dear.
Most welcome
Good Info Bro, Thanks for updates
Always welcome Divakar
Thank you so much. It's very useful to us . Extremely easy and knowledgeable. Thanks for sharing
Can you please share the failed test cases screenshot with TestNG
yes, we can, will check some examples
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.
Hi Saritha, sure I will do.
thank you@@RaghavPal
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.
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.th-cam.com/play/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa.html
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?
You can, extent report is to add results in a report. Logging you can use for more deeper troubleshooting
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?
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"
very good explanation. Thanks a lot !!
You are welcome Shilpa
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.
They are diff libraries, TestNG is mostly a testing framework and Extent Reports is a reporting library
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
Hi Deepika, you're welcome. pls check in your project folder
It would be great if you make a video for failed test cases
I will do it soon Shreyas
@@RaghavPal thanks for the reply Raghav.
have you done this video
Hi Raghav,
Can you share a video on extent reports in TestRunner.
I will check Sunny
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.
Hi Ravi, hope you have already seen exiting testng videos here th-cam.com/play/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa.html
I will also try to add on this session
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
Hi Anuran, You can create multiple testing.xml files as per your need and run the one you need as required
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.
Hi Vipin, will create a session on TestNG listeners soon.
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?
Hi Pete, yes I will have do the updates in some time.
Thank you for the wonderful series of informative videos. How does the report looks like if the test case is actually fails?
Hi Kisho, May be I have shown that in some session but do not recall. You can try failing and check.
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.
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
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.
Hi, I believe you will need to use tools like grafana
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?
Hi Vinod, I will need to see the logs for this
hi raghav,
how to open extent report automatically after executing the testcases. because I want automate extent report too.
You will need to get the file or url and open it
i am getting an error may i know how to solve it --> "The method attachReporter(ExtentHtmlReporter) is undefined for the type ExtentReports"
Hi Gowthami, this can help - github.com/anshooarora/extentreports-java/issues/898
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
Hi Raghav, is there any reference for the code in the video?
Yes, can find code here github.com/Raghav-Pal/SeleniumJavaFramework1
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
Hi Vini, Pls check and compare the version of Extent report
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
Hi Surya, difficult to say anything without looking at the code and setup, Suggest you to check the process and steps again
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.
Hi Parminder, you can use testng.xml for this
Hi sir....shall we export the output into Excel file...like maintaining report
Yes, you can
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.
Hi Imtiaz, do you see any caused by section in logs
@@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
will need to check online, will update if I find something
@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
Hi Akshay, it should be in your target folder
@@RaghavPal
Okk thanks
I am not able to add maven dependencies. Mave dependencies folder is not showing in the list.
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.
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.
Hi Mouna, you can select all and press Ctrl+/
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
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
@Automation Nice video,have a doubt, Is it a good way to add info steps.in our testcases??
Hi Jino, I did not get you completely. You can add steps in test cases. Are you looking at the framework model
@@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
Yes, you can do that, it will help in troubleshooting during errors.
@@RaghavPal Thanks for replying
Hi Sir,
Screenshot are not getting generated. Can you look into that?
Hi, I will need more details and error message, logs
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?
Hi @Test will add a new test in the report. So based on how you want to show the report can arrange it
@@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?
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.
Hi Parag, sure, I will soon create a sample mini project and publish it.
Automation Step by Step - Raghav Pal hey thanks that will be great help for every one.
Thanks once again
@@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. 🤘
Hi Raghav thanks for the video.Can we extent report for cross browser testing running in parallel inside one reporting file?
Hi Tasmi, I will check on this
@@RaghavPal Thank you so much Raghav that will be very helpful for us if you create one video on this
What is the difference between extend reports and testng reports(html reports). Both r used to generate the results right?
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
thanks for the reply raghav
Why did we not get images of screenshots in the report?
will need to check on that Sowjanya
Can take help from some online examples too
"The type ExtentHtmlReporter is deprecated " i am getting this and the Extend class is cutted
Hi Shahid, did you try with the same version and process as shown. Will have to check more on this online.
I ended up using Klov - ExtentReports
www.swtestacademy.com/klov-extentreports-test-reporting/
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.
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
Hi Yuva, you can add code to append timestamp in report name so you can a new report on every run.
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!
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
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?
Hi Haider, this can help stackoverflow.com/questions/18106588/how-to-disable-cookies-using-webdriver-for-chrome-and-firefox-java
@@RaghavPal Thank you Raghav it works perfectly for Firefox but not for Chrome
Hello Raghav , Can please show Extent Report with Junit also Please
I will check on that Abhinandan, For now pls check the documentation
How can we publish the klov url .. so that all my team can access the same.
Hi Sandeep, I have not tried it. Will have to check online
@@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
Hi Sandeep, what exactly do you refer to by dynamic pattern? Do you need real-time reports
@@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.
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
Hi Raghav Pal who created a extent report with cucumber steps? i need know for my jobs please help
Not aware Matias, you can get some online help
You are awesome, thanks so much for rich knowledge :-)
So nice of you Namit
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! :)
Thanks for the feedback, Yes I try to keep it simple for Beginners, but will improve on this
How to use the encapsulation in selenium
I will plan a session. For now just to understand the concept check this
th-cam.com/video/ZYa_NiOUTQo/w-d-xo.html
Oh man the test does pass but the steps is still "0" , any advice?
Hi Frank, what do the logs say
unable to see screenshots - any idea ?
will need to see the setup and logs
I am not able to add maven dependency.
Hi Sandhya, I will need more details on this
Hi Raghav how i can use this in multiple classes??
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
@@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?
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
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.
Hi Arun, I will plan a session, but do not suggest to fake the exp
@@RaghavPal yes sir. Not really fake, but just to have a real time project experience feeling. Confidence
You should have explained with multiple test cases and with using testng.xml
Hi Vasant, will try to add more examples
You didn't explain how to take the screenshot for each step and attach it in extent report
Hi Dibakar, I will check and add the session
:)