White-box test techniques · Question 41 of 60
A function contains two independent decisions without else branches: "if voucher, then lower price" followed by "if new customer, then send welcome mail". What is the minimum number of test cases for 100% statement coverage?
1 answer is correct. Hard Created with AI
Show answer
Answer
- D 1
Explanation
One test with a voucher and a new customer executes both conditional statements and all others.