Customize, PDF & Email TestNG Reports in Selenium WebDriver (medium)

AwedExuberance avatar
AwedExuberance
·
·
Download

Start Quiz

Study Flashcards

30 Questions

Which type of report in TestNG provides a complete report of the current test execution?

Index.html

What is the purpose of reporting in software testing?

To find bugs and report them

Which folder is generated by TestNG after execution?

test-output

What does the emailable-report.html contain?

Summary report of current test execution

What is the purpose of TestNG library?

To provide a handy reporting feature

Which type of report in TestNG provides customization, PDF, and email features?

Customized report

What is the purpose of an automation tester in software testing?

To test the application, find bugs, and report them

Which API is needed to create a PDF report in Selenium WebDriver?

IText

What is the purpose of the TestGuru99ForReporter.java class?

To demonstrate custom reporting in TestNG

Which class is responsible for creating a PDF report in the TestGuru99ForReporter.java example?

JypersionListener

What is the purpose of the BaseClass.java in the TestGuru99PDFEmail.java example?

To create a WebDriver and take screenshots

What customization is made to the JypersionListener.java class in the TestGuru99PDFEmail.java example?

Taking screenshots on error and attaching them to the PDF report

What is the purpose of the TestGuru99PDFEmail.java class?

To execute test cases, create a PDF report, and send it via email

What is the default report format in the TestNG PDF report generated by the JypersionListener class?

Shown in the figure above

Which interface do we use when we need to customize real-time TestNG reports?

ITestListener

What is the purpose of the RealGuru99TimeReport class?

To implement the ITestListener interface for real-time reporting

What is the purpose of the Guru99Reporter class?

To customize the final test report generated by TestNG

Which method of the RealGuru99TimeReport class is called when a test case fails?

onTestFailure

What is the purpose of the testRealReportThree method in the TestGuru99RealReport class?

To execute a test case that depends on the failed testRealReportTwo method

What is the purpose of the onStart method in the RealGuru99TimeReport class?

To indicate the start of test execution

What is the purpose of the onFinish method in the RealGuru99TimeReport class?

To indicate the end of test execution

Which library files need to be imported to enable email functionality in the code?

mail.jar, pop3.jar, smptp.jar

What is the purpose of the @AfterSuite annotation in the code?

It sends the PDF report via email

What is the purpose of the BaseClass in the code?

To provide a WebDriver instance

What is the purpose of the JyperionListener class in the code?

To generate PDF reports

What is the purpose of the sendPDFReportByGMail method in the code?

To send the PDF report via email

What is the purpose of the objMessageBodyPart variable in the code?

To attach the PDF report to the email

What is the purpose of the transport variable in the code?

To send the email message

What is the purpose of the index.html and emailable-report.html files in the test-output folder?

They are the main reports generated by TestNG

What is the purpose of the ITestListener and IReporter interfaces in TestNG?

To customize TestNG reports

This quiz is about iterating through a map's values using keySet() and working with the Context object in TestNG. Learn how to print suite details and execution start date and time.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser