QuestionQ39
VerifiedWhite-Box Test TechniquesConsider this specification:

When flying with an economy ticket, you may be upgraded to business class, particularly if you have a gold card in the airline’s frequent-flier program. If you do not have a gold card, you may be bumped off the flight when it is full and you check in late.
This is represented in the control-flow graph below. Each box (that is, statement or decision) is numbered.
Three tests have been run:
- Test 1: A gold-card holder who is upgraded to business class
- Test 2: A non-gold-card holder who remains in economy
- Test 3: A person who is bumped from the flight
What level of decision coverage is achieved by these three tests?
Community Discussion