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

AwedExuberance avatar
AwedExuberance
·
·
Download

Start Quiz

Study Flashcards

Questions and Answers

Which type of report in TestNG contains information like error, groups, time, reporter logs, and testng XML files?

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 in TestNG summarize?

<p>Test Case messages</p> Signup and view all the answers

What is the purpose of automation testing?

<p>To find bugs and report them</p> Signup and view all the answers

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

<p>Index.html</p> Signup and view all the answers

What is the purpose of the test-output folder generated by TestNG?

<p>To store reports of the current execution</p> Signup and view all the answers

Which interface is used to customize real-time TestNG reports?

<p>ITestListener</p> Signup and view all the answers

What is the purpose of the RealGuru99TimeReport class?

<p>To implement ITestListener interface</p> Signup and view all the answers

How many methods does the IReporter interface have?

<p>1</p> Signup and view all the answers

What is the purpose of the Guru99Reporter class?

<p>To implement IReporter interface</p> Signup and view all the answers

What is the output of the testRealReportTwo test case?

<p>Test Failed-&gt;testRealReportTwo</p> Signup and view all the answers

What is the purpose of the TestGuru99RealReport class?

<p>To execute test cases</p> Signup and view all the answers

What is the purpose of the RealGuru99TimeReport.java file?

<p>To implement ITestListener interface</p> Signup and view all the answers

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

<p>IText</p> Signup and view all the answers

What is the purpose of the BaseClass in the provided code?

<p>To create a WebDriver</p> Signup and view all the answers

What is the output of the code snippet provided in the text?

<p>Suite Name-&gt;TestGuru99ForReporter::Report output Ditectory-&gt;null::Suite Name-&gt;null::Start Date Time for execution-&gt;null::End Date Time for execution-&gt;null</p> Signup and view all the answers

What is the purpose of the TestGuru99ForReporter class in the provided code?

<p>To execute test cases</p> Signup and view all the answers

What is the default format of the PDF report generated in the provided code?

<p>Default format</p> Signup and view all the answers

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

<p>To customize the PDF report</p> Signup and view all the answers

What is the purpose of the takeSnapShot function in the BaseClass?

<p>To take screenshots</p> Signup and view all the answers

Which annotation is used to generate a PDF report in TestNG?

<p>@Listeners</p> Signup and view all the answers

What is the purpose of the JyperionListener class?

<p>To generate a PDF report</p> Signup and view all the answers

Which method is used to send a PDF report via email in TestNG?

<p>sendPDFReportByGMail()</p> Signup and view all the answers

Which library files need to be imported to enable email in TestNG?

<p>mail.jar, pop3.jar, smptp.jar</p> Signup and view all the answers

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

<p>To send an email of the PDF report</p> Signup and view all the answers

What is the purpose of the BaseClass in the provided code?

<p>To initialize the WebDriver</p> Signup and view all the answers

What is the purpose of the Assert.assertTrue() method in the provided code?

<p>To fail the test case</p> Signup and view all the answers

What is the purpose of the @Test annotation in the provided code?

<p>To mark a method as a test case</p> Signup and view all the answers

What is the purpose of the testPDFReportThree() method in the provided code?

<p>To pass a test case</p> Signup and view all the answers

Use Quizgecko on...
Browser
Browser