Software Testing Lab 8: Principles and Methods
10 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

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

  • To specify a precondition for a test case
  • To specify the execution priority of a test case
  • To provide a description for each test case (correct)
  • To ignore a test case

What is the function of the Assert class in TestNG?

  • To execute a test case
  • To ignore a test case
  • To specify the execution priority of a test case
  • To compare expected and actual values (correct)

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

  • To execute a method before each test case (correct)
  • To specify the execution priority of a test case
  • To ignore a test case
  • To execute a test case

What is the purpose of the OWASP Zed Attack Proxy (ZAP) tool?

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

What is the purpose of the assertEquals method in TestNG?

<p>To check if two primitives/Objects are equal (A)</p> Signup and view all the answers

What is the purpose of the @Test(enable=false) annotation in TestNG?

<p>To ignore a test case (A)</p> Signup and view all the answers

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

<p>To execute a method before all methods in a class (D)</p> Signup and view all the answers

What is the purpose of the Apache JMeter tool?

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

What is the purpose of the @Test(dependsOnMethods) annotation in TestNG?

<p>To specify a precondition for a test case (C)</p> Signup and view all the answers

What is the purpose of the TestNG framework?

<p>A testing framework (C)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser