CSQA practice question 21 of 35

Statement Testing is included in which of the following test data categories?

Full set: 471 questions
Answer options
A: Functional
B: Structural Correct answer
C: Error Oriented
Correct Answer:
B. Structural
Explanation

Statement testing, also known as statement coverage, is a white-box testing technique. Its primary objective is to design test cases that execute every programming statement in the source code at least once. This method directly assesses the internal logic and structure of the code to ensure all lines are exercised. Because its focus is on the internal construction of the software rather than its external behavior or potential error locations, it is fundamentally classified as a structural testing technique.

Why Incorrect

A. Functional testing is a black-box technique that validates software against specified requirements, focusing on inputs and outputs without knowledge of the internal code structure.
C. Error-oriented testing techniques, such as error guessing, are based on the tester's experience and intuition to anticipate common types of defects, rather than systematically covering the code's structure.

References

1. Ammann, P., & Offutt, J. (2016). Introduction to Software Testing (2nd ed.). Cambridge University Press. In Chapter 2, "Coverage Criteria," statement coverage is introduced as a fundamental type of structural coverage criterion, also referred to as "Node Coverage" in the context of control flow graphs (p. 48).

2. Pezzè, M., & Young, M. (2008). Software Testing and Analysis: Process, Principles, and Techniques. John Wiley & Sons. Chapter 3, "Test Adequacy," explicitly categorizes statement coverage under "Structural Adequacy Criteria," defining it as a criterion that is satisfied when "each statement in the program has been executed at least once" (p. 62).

3. Koomen, T., & van der Aalst, L. (Eds.). (2006). TMap NEXT: For result-driven testing. UTN Publishers. This industry-standard methodology classifies test design techniques. Statement testing is described under the category of "White-box techniques," which are synonymous with structural testing (Section 11.4.2).

Scroll to Top