Your company is developing a system with complex business rules and many branches in the structure of its code components. You need to choose one black box technique and one white box technique for test case design.
Which one of the following offers the BEST choice?
Answer : D
For a system with complex business rules and many branches, decision testing (a white-box technique) is appropriate because it ensures that each decision point (branch) in the code is tested. Equivalence partitioning (a black-box technique) complements this by ensuring that all functional areas (based on different inputs) are adequately tested. This combination provides thorough coverage of both the internal logic and the functional requirements of the system.
A booking system for a city bus service prices its fares according to the time of travel:
* Peak-time tariff starts at 0600 and finishes at 1000 am
* Off-peak tariff applies during all other times of service
* The bus service does not operate between 2300 and the start of the next day's peak service
Note that all times mentioned are inclusive.
When applying the equivalence partitioning test design technique, which of the following options, shows test case inputs that each fall into a different equivalence partition?
Answer : A
Equivalence partitioning is a black-box test design technique that divides input data into partitions that are expected to be treated similarly by the system. In this case, 0600 falls into the peak-time tariff, 1000 is at the boundary of peak-time but still included in it, and 1200 falls into the off-peak tariff. This ensures that each input is from a different equivalence partition, testing different functional areas of the system.
A test case starts at S1 and triggers 4 events in sequence: E1, E4, E5, E7. What will be the finishing state and the output(s) from the test case? [K3]
Refer to the exhibit
Answer : C
According to the state transition table and the sequence of events, starting from state S1 and triggering events E1, E4, E5, and E7 will lead the system to state S4 with the output O4. Each event transitions the system from one state to another, producing the specified output at each step until the final state and output are reached.
Topic 3, Mix Questions Set C
From the following list, which of the following apply to experience-based techniques? [K2]
a. Test cases are derived from a model of the problem to be solved or the software
b. Test cases are derived from the knowledge of the testers
c. The knowledge of testers, developers and users is used to drive testing
d. The internal structure of the code is used to derive test cases
Answer : D
Experience-based techniques rely on the testers' knowledge, skills, and experience, as well as insights from developers and users, to design test cases. These techniques do not depend on formal models or the internal structure of the software but rather on practical experience and understanding of how the software is likely to be used and where defects are likely to be found.
Which of the following test case design techniques is white box (structure-based)? [K1]
Answer : C
White box testing techniques, also known as structure-based techniques, focus on the internal structure of the software. Decision testing (C) is a white box technique that involves creating test cases to execute specific decision points in the code, such as conditional statements. This ensures that all possible paths through the code are tested, helping to identify defects related to the control flow of the application. Other techniques listed, such as use case testing and state transition testing, are black box techniques that focus on the software's functionality from the user's perspective.
Which of the following statements best characterises maintenance testing? [K2]
Answer : A
Maintenance testing is conducted on the software after it has been delivered to address any issues or changes required due to defects, environment changes, or new requirements. The ISTQB syllabus explains that maintenance testing typically involves impact analysis to determine the extent of regression testing required, thus optimizing the testing effort and focusing on affected areas.
Functional and structural tests are alternative test types that may be used separately or together at which test level? [K1]
Answer : B
Functional and structural tests are types of testing techniques that can be applied at various levels of testing. According to the ISTQB CTFL syllabus, functional and structural tests are not restricted to any specific test level but are applicable across all levels of testing. This includes component, integration, system, and acceptance testing. The use of both types of tests helps ensure comprehensive testing coverage, addressing both the functional requirements and the internal structure of the software product.