ISTQB Chapter 4 Theories Flashcards
What are the three test techniques used to support testers in test analysis (what to test) and in test design (how to test)?
- Black-box test techniques (specification-based techniques)
- White-box test techniques (structure-based techniques)
- Experience-based test techniques
This test technique is based on an analysis of the specified behavior of the test object without reference to its internal structure. Therefore, the test cases are independent of how the software is implemented. Consequently, if the implementation changes, but the required behavior stays the same, then the test cases are still useful.
a. Black-box test techniques
b. White-box test techniques
c. Experience-based test techniques
a. Black-box test techniques (also known as specification-based techniques)
This test techniques are based on an analysis of the test object’s internal structure and processing. As the test cases are dependent on how the software is designed, they can only be created after the design or the implementation of the test object.
a. Black-box test techniques
b. White-box test techniques
c. Experience-based test techniques
b. White-box test techniques (also known as structure-based techniques)
This test techniques use the knowledge and experience of testers for the design and implementation of test cases. The effectiveness of these test techniques depends heavily on the tester’s skills.
a. Black-box test techniques
b. White-box test techniques
c. Experience-based test techniques
c. Experience-based test techniques
Note: Experience-based test techniques can detect defects that may be missed using the
black-box test techniques and white-box test techniques. Hence, experience-based test techniques are complementary to the black-box test techniques and white-box test techniques.
What are the commonly used black-box test techniques?
- Equivalence Partitioning
- Boundary Value Analysis
- Decision Table Testing
- State Transition Testing
This black-box test technique divides data into partition based on the expectation that all the elements of a given partition are to be processed in the same way by the test object.
a. Equivalence Partitioning
b. Boundary Value Analysis
c. Decision Table Testing
d. State Transition Testing
a. Equivalence Partitioning
In Equivalence Partitioning, how do you achieve 100% coverage?
Test cases must exercise all identified partitions (including invalid partitions) by covering each partition at least once.
Valid partition - partition that contains valid value, or those that should be processed by the test object are as those for which the specification defines their processing.
Invalid partition - partition that contains invalid value, or those that should be ignored or rejected by the test object or as those for which no processing is defined in the test object specification.
This refers to the number of partitions exercised by at least one test case, divided by the total number of partitions, and is expressed as a percentage.
Coverage
For Equivalence Partitioning, what is Each Choice coverage and its purpose?
Each Choice coverage applies to a test case that is covered by multiple sets of partitions. Each Choice coverage requires test cases to exercise each partition from each set of partitions at least once.
Each Choice coverage does not take into account combinations of partitions.
What is the theory behind the Equivalence Partitioning technique for black-box testing?
The expectation is that all the elements of a given partition are to be processed in the same way by the test object.
This means that a defect found in one value from an equivalence partition applies to the test of any other value from the same partition. Therefore, one test for each partition is sufficient.
This is a black-box test technique based on exercising the boundaries of equivalence partitions.
This can only be used for ordered partitions.
a. Equivalence Partitioning
b. Boundary Value Analysis
c. Decision Table Testing
d. State Transition Testing
b. Boundary Value Analysis (BVA)
What is the theory behind Boundary Value Analysis (BVA) for black box testing?
BVA focuses on the boundary values of the partitions because developers are more likely to make errors with these boundary values.
Typical defects found by BVA are located where implemented boundaries are misplaced to positions above or below their intended positions or are omitted altogether.
What are the two common versions of Boundary Value Analysis (BVA)?
- 2-value Boundary Value Analysis
- 3-value Boundary Value Analysis
In this BVA, there are two coverage items: this boundary value and its closest neighbor belonging to the adjacent partition.
a. 2-value BVA
b. 3-value BVA
a. 2-value BVA
In this BVA, there are three coverage items: this boundary value and both its neighbors.
a. 2-value BVA
b. 3-value BVA
b. 3-value BVA