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</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</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</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</p> Signup and view all the answers

    What is the purpose of the Apache JMeter tool?

    <p>Performance testing</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</p> Signup and view all the answers

    What is the purpose of the TestNG framework?

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

    More Like This

    Introduction to Software Testing
    12 questions
    Software Testing Chapter 7
    14 questions
    Software Testing Fundamentals
    8 questions
    Use Quizgecko on...
    Browser
    Browser