Software Testing: Assignment # 02 Banaras Ali FA15-BSE-154 Sec - 7C
Software Testing: Assignment # 02 Banaras Ali FA15-BSE-154 Sec - 7C
ASSIGNMENT # 02
Banaras Ali
FA15-BSE-154
SEC – 7C
Question 01
Every person receives a benefit of 350. In addition it is determined whether a person has worked
and that his/her age is higher than 40. In this case the benefit is raised by 100. Alternatively
(else) for persons that are not working and have exactly 4 children the benefit is raised by 50
For this specification, the following three input attributes can be distinguished: -
Working history
Age
Number of Children.
Page |1
ASSIGNMENT 02 SOFTWARE TESTING
2. Identify the test cases both for valid and invalid cases.
Test Class Partition Case Type Enter Value Result Expected
Case
No.
1 Do Not valid False Benefit of 350
Working only
2 Working + Valid True , 45 Extra Benefit of
Age > 40. 100 with 350
3 Do Not Valid True , 4 Extra Benefit of
Working + 50 for Children
Children = 4. with 350
Page |2
ASSIGNMENT 02 SOFTWARE TESTING
Question 02
E-Ticketing is a reservation system where customers can buy their airline tickets online. The
customers make first a reservation and after they paid for the ticket the system prints their ticket.
The ticket is valid until the boarding on the airplane. The reservation can be cancelled by the
customer or by the system if the time of the reservation expired without payment.
1. Define all the states and draw the state transition diagram:
All States:
S1: “Start”, S2: “Make Reservation”, S3: “Payment”, S4: “Print Ticket”, S5:
“Reservation cancellation”, S6: “Boarding of Plane”.
State Transition Diagram:
Page |3
ASSIGNMENT 02 SOFTWARE TESTING
Test Case 2:
Customer Make Reservation and pay amount, System prints ticket but customer
visits after boarding and ticket cancelled.
Test Case 3:
Customer Make Reservation but didn’t pay amount, so the system cancels the
ticket after time expiry.
THE END!
Page |4