0
0
Selenium Javatesting~5 mins

Extent Reports setup in Selenium Java - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AExtentReports
BExtentTest
CHtmlReporter
DExtentHtmlReporter
What method do you call to save the Extent Report after logging tests?
Aflush()
Bsave()
Cwrite()
Dclose()
Which Extent Reports class represents a single test case in the report?
AExtentTest
BExtentReport
CTestLogger
DTestCase
Where do you specify the file path for the Extent Report HTML file?
AIn ExtentTest constructor
BIn ExtentHtmlReporter constructor
CIn ExtentReports constructor
DIn flush() method
What is the first step to set up Extent Reports in a Selenium Java project?
ACreate ExtentTest object
BCall flush() method
CCreate ExtentReports and attach ExtentHtmlReporter
DAdd screenshots
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.