Selecting and using suitable test data

Cards (25)

  • What is the primary purpose of test data in programming?
    To test program functionality
  • The goal of using test data is to ensure the program behaves as expected under only normal conditions.
    False
  • Boundary data is used to test the program's ability to handle data at its limits
  • Steps for developing a test data strategy:
    1️⃣ Define normal data
    2️⃣ Define boundary data
    3️⃣ Define erroneous data
  • Reviewing past issues or user feedback can help anticipate potential problem areas when generating test data.

    True
  • What is the primary characteristic of normal data in a test data set?
    Expected to handle correctly
  • Normal data is defined as data that the program is expected to handle correctly
  • What type of data should trigger error handling in a program?
    Erroneous data
  • Match the type of test data with its definition:
    Normal data ↔️ Expected to handle correctly
    Boundary data ↔️ Limits of program handling
    Erroneous data ↔️ Should handle gracefully
  • What is an example of normal data for a program that processes transaction amounts?
    Typical transaction amounts
  • What is an example of erroneous data for a program that processes ages?
    Negative values
  • What is one technique for generating effective test data?
    Analyzing program requirements
  • Automated tools can be used to ensure consistency and coverage when generating test data.
  • What are the three main types of test data used to create effective test data sets?
    Normal, boundary, erroneous data
  • Boundary data refers to data at the limits of the program's expected range.

    True
  • Match the type of test data with its example:
    Normal data ↔️ Typical transaction amounts
    Boundary data ↔️ Maximum allowed values
    Erroneous data ↔️ Non-numeric input
  • What are the three main types of test data?
    Normal, boundary, erroneous
  • Erroneous data is designed to test the program's ability to handle unexpected input
  • Automating test data generation ensures consistency and reduces the risk of human error
  • What does including a variety of test data types ensure about a program?
    Overall robustness
  • The goal of using a variety of test data is to ensure the program behaves as expected under different conditions
  • Normal data is expected to cause error handling in a program.
    False
  • What is the purpose of boundary data in a test data strategy?
    Tests behavior at limits
  • Boundary data includes empty fields as examples of data at the limits of the program's expected range.
    False
  • Match the type of test data with its definition in program validation:
    Valid data ↔️ Typical inputs the program should handle successfully
    Invalid data ↔️ Inputs that should trigger error messages
    Boundary data ↔️ Values at the limits of the expected range