Software Testing II Flashcards
7 Questions
100 Views

Software Testing II Flashcards

Created by
@TenaciousFeynman9892

Questions and Answers

Which of the following are general techniques in software testing? (Select all that apply)

  • NoSQL Queries
  • Equivalence Classes (correct)
  • Specification Based (correct)
  • Boundary Value Analysis (correct)
  • What is equivalence partitioning?

    It is a software testing technique that divides input and/or output data into partitions from which test cases can be derived.

    What typically gets partitioned in equivalence partitioning?

    Input data, but output data can also be partitioned depending on the software unit being tested.

    Provide an example of a function that utilizes equivalence partitioning based on month input.

    <p>A function taking a parameter 'month' which has valid inputs from 1 to 12.</p> Signup and view all the answers

    What is boundary value analysis?

    <p>It is a method used to supplement equivalence partitioning by focusing on edge values of the partitions.</p> Signup and view all the answers

    How are test cases structured when using both equivalence partitioning and boundary value analysis?

    <p>Test cases include inputs for partitions as well as additional boundary values.</p> Signup and view all the answers

    What is decision table testing?

    <p>It identifies test cases through a logical truth table.</p> Signup and view all the answers

    Study Notes

    General Testing Techniques

    • Specification Based Testing: Focuses on the requirements and increases test coverage.
    • Code Based Testing: Testing based on the actual code implementation.
    • Equivalence Classes: Grouping inputs into classes that are expected to be treated the same.
    • Boundary Value Analysis: Testing values at the boundaries of equivalence classes.
    • Decision Table Testing: Uses logical tables to determine valid test cases based on different conditions.
    • Path Testing: Examines the execution paths of the code to ensure all paths are tested.
    • Integration Testing Techniques: Methods for testing combinations of components or systems.

    Equivalence Partitioning

    • A software testing method that categorizes inputs or outputs into equivalence partitions.
    • Each partition generates test cases for effective coverage of functional requirements.
    • Test cases should be designed to test each partition at least once.

    Partitionable Elements

    • Input data is typically the primary focus for partitioning.
    • Output data may also be partitioned based on the context and requirements of the software unit.
    • Each partition consists of similar values that should invoke the same response from the software.

    Equivalence Partitioning Example

    • An example function accepts a "month" input with a valid range of 1 to 12.
    • Valid partition is [1, 12] while invalid partitions include values less than 1 and greater than 12.
    • Illustrative test cases correspond to these partitions: x < 1 (e.g., -2), 1 ≤ x ≤ 12 (e.g., 5), x > 12 (e.g., 17).

    Boundary Value Analysis

    • Complements equivalence partitioning by focusing on edge values.
    • Targets test cases at extreme values surrounding partition boundaries.
    • Helps identify potential errors that occur at the boundaries of input ranges.

    Combined Equivalence Partitioning and Boundary Value Analysis

    • Test cases are enhanced by including boundary values alongside partitions.
    • Example for months: includes values at the boundaries (0, 1, 2 for lower edge; 11, 12, 13 for upper edge).

    Decision Table Testing

    • Involves creating a logical truth table to identify various test cases.
    • Provides a structured way to evaluate combinations of conditions and their outcomes.
    • Example of conditions includes benefit packages, employment status, and tenure days affecting eligibility.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Test your knowledge on key terms and concepts in Software Testing II. This quiz covers general techniques, equivalence partitioning, and various testing methodologies to enhance your understanding of software quality assurance.

    More Quizzes Like This

    Syntax Coverage in Software Testing
    5 questions
    Boundary-value Analysis in Software Testing
    60 questions
    Testing in Software Development
    12 questions
    Types of Software Testing
    8 questions
    Use Quizgecko on...
    Browser
    Browser