Answer :
1. Advantages of white box testing:
- 2. It can discover missing required behavior
- 3. It can directly test coded behavior
2. The given statement, "White box testing: Branch coverage subsumes statement coverage" is false (b) because branch coverage does not necessarily subsume statement coverage.
3. Random testing is helpful during:
- 1. System testing
- 2. Continuous integration
- 4. Regression testing
4. The given statement, "The input domain is the pool of all possible inputs that a unit/program can take" is true (a) because the input domain is the pool of all possible inputs that a unit or program can take.
5. In random testing, the job of the oracle is to monitor for errors and save those test cases. Option A is correct.
White box testing provides several benefits. First, it can discover missing required behavior by examining the internal structure of the software and identifying any functionality gaps. Second, it enables testers to directly test the coded behavior, ensuring that the implemented logic functions correctly. This level of visibility allows for thorough testing of specific code paths and increases the overall test coverage, resulting in a higher chance of detecting defects and ensuring the reliability of the software.
The statement "White box testing: Branch coverage subsumes statement coverage" is false because branch coverage and statement coverage are two distinct metrics. While branch coverage focuses on testing all possible outcomes of control structures, statement coverage aims to execute each statement at least once. While achieving branch coverage may imply statement coverage, it does not necessarily subsume it entirely.
Random testing is helpful during system testing, continuous integration, and regression testing. In system testing, random testing can expose unexpected issues and help identify vulnerabilities. Continuous integration benefits from random testing by catching bugs early in the development process, ensuring software stability. In regression testing, random testing can be used to complement existing test cases and help uncover new defects that might have been missed by traditional testing approaches.
The statement "The input domain is the pool of all possible inputs that a unit/program can take" is true. The input domain represents the complete set of valid and possible inputs that can be provided to a unit or program during testing or execution. It encompasses all potential values, ranges, formats, and combinations that the software can handle and process.
In random testing, the job of the oracle is to monitor for errors and save those test cases. The oracle acts as a mechanism or reference point to determine the correctness of the software's behavior. It observes the execution of the random test cases and compares the actual results with the expected outcomes, identifying errors or discrepancies. The oracle then saves the test cases that lead to errors, allowing further analysis and investigation into the faulty behavior.
Learn more about white box testing: https://brainly.com/question/29343355
#SPJ11