Recall & Review
beginner
What is Extent Reports in Selenium testing?
Extent Reports is a library used to create detailed and visually appealing test reports for Selenium automation tests. It helps track test execution results with logs, screenshots, and charts.
Click to reveal answer
beginner
Which main class is used to create an Extent Report instance in Java?The main class is <code>ExtentReports</code>. You create an object of this class to start building your report.Click to reveal answer
intermediate
How do you attach a reporter to ExtentReports?
You create an
ExtentHtmlReporter object with the report file path, then attach it to ExtentReports using attachReporter() method.Click to reveal answer
beginner
What is the purpose of
ExtentTest in Extent Reports?ExtentTest represents a single test in the report. You use it to log test steps, pass/fail status, and add screenshots.Click to reveal answer
beginner
Which method finalizes and writes the Extent Report to disk?
The
flush() method of ExtentReports writes all logged information to the report file. It should be called at the end of the test run.Click to reveal answer
Which class do you use to create an HTML report file in Extent Reports?
✗ Incorrect
ExtentHtmlReporter is used to specify the HTML report file location and format.
What method do you call to save the Extent Report after logging tests?
✗ Incorrect
flush() writes all the logged test information to the report file.
Which Extent Reports class represents a single test case in the report?
✗ Incorrect
ExtentTest is used to log steps and results for each test case.
Where do you specify the file path for the Extent Report HTML file?
✗ Incorrect
The ExtentHtmlReporter constructor takes the file path for the HTML report.
What is the first step to set up Extent Reports in a Selenium Java project?
✗ Incorrect
You first create ExtentReports and attach an ExtentHtmlReporter to specify the report file.
Explain the steps to set up Extent Reports in a Selenium Java test project.
Think about initializing the reporter, logging tests, and saving the report.
You got /6 concepts.
Describe the role of ExtentTest and how it is used during test execution.
Focus on how individual tests are recorded in the report.
You got /5 concepts.