Customize, PDF & Email TestNG Reports in Selenium WebDriver (hard)
30 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

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

  • Index.html (correct)
  • Customization
  • emailable-report.html
  • PDF & Email

What is the purpose of reporting in software testing?

  • To generate a test-output folder
  • To exercise the Application Under Test
  • To provide a handy reporting feature
  • To find bugs and report them (correct)

Which folder is generated by TestNG after execution?

  • root
  • current-test
  • test-output (correct)
  • execution-folder

What does the emailable-report.html in TestNG summarize?

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

What is the purpose of automation testing?

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

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

<p>Index.html (D)</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 (A)</p> Signup and view all the answers

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

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

What is the purpose of the RealGuru99TimeReport class?

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

How many methods does the IReporter interface have?

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

What is the purpose of the Guru99Reporter class?

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

What is the output of the testRealReportTwo test case?

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

What is the purpose of the TestGuru99RealReport class?

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

What is the purpose of the RealGuru99TimeReport.java file?

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

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

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

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

<p>To create a WebDriver (B)</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 (C)</p> Signup and view all the answers

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

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

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

<p>Default format (B)</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 (D)</p> Signup and view all the answers

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

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

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

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

What is the purpose of the JyperionListener class?

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

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

<p>sendPDFReportByGMail() (B)</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 (D)</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 (C)</p> Signup and view all the answers

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

<p>To initialize the WebDriver (A)</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 (D)</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 (B)</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 (B)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser