Question: Statement and decision testing exercise Scenario: A vending machine dispenses either hot or cold drinks. If you choose a hot drink (e.g. tea or coffee),
Statement and decision testing exercise
Scenario: A vending machine dispenses either hot or cold drinks. If you choose a hot drink (e.g. tea or coffee), it asks if you want milk (and adds milk if required), then it asks if you want sugar (and adds sugar if required), then your drink is dispensed.
Questions to be Answer
Que1) Given the following tests, what is the statement coverage achieved? What is the decision coverage achieved? Test 1: Cold drink Test 2: Hot drink with milk and sugar
Que2) What additional tests would be needed to achieve 100% statement coverage? What additional tests would be needed to achieve 100% decision coverage?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
