Question: Problem for testing: Functional testing find differences between the functional requirements and the system. The functional testing is a blackbox technique: test cases are derived

Problem for testing:

Functional testing find differences between the functional requirements and the system. The functional testing is a blackbox technique: test cases are derived from the use case model. The goal of tester is to find the tests that have a high probability of uncovering a failure.

Let us consider the model of a subway ticket distributor.

Passenger purchases a ticket. There is the case the machine to be out of order , cancel, and time out. The passenger selects the number of zones to be travelled. Only the last button pressed is considered by the distributor. More analytically the three features of the distributor are:

a. passenger may press multiple zone buttons before inserting money, in which case the distributor should display the amount of the last zone.

b. passenger may select another zone button after beginning to insert money, in which case the distributor should return all money inserted by the passenger.

c. the passenger may insert more money than needed, in which case the distributor should return the correct change.

Please prepare the following:

1. Depict the PurchaseTicket use case describing the normal interaction between passenger (actor) and the distributor.

2. Prepare a state diagram that with three zones. There are transitions from one zone to another. Please consider the following test:

a. make the selection of the zone1 (press button1) , then button2 etc . The series of pressed buttons could be: button1, button2, button1, button3, button1, button2, button3, button2

b. insert money for zone2 (insert money < zone2 amount)

c. press button2, button1

d. insert money for zone1 (insert money< zone1 amount)

e. press button1, button3

d. insert money for zone3 (insert money

f. press button3

g. insert mone for zone3 (insert money> zone3 amount)

h. press button2

i. insert money for zone2 (insert money> zone2 amount)

k. press button3

For all of these types of stimuli give the transition tested and the predicted resulting state

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!