0% found this document useful (0 votes)
51 views5 pages

Software Testing: Assignment # 02 Banaras Ali FA15-BSE-154 Sec - 7C

This document contains two software testing assignments. The first assignment deals with testing a benefit calculation system based on work status, age, and number of children. It identifies the equivalence classes and test cases for the different attributes. The second assignment defines the states and draws a state transition diagram for an e-ticketing reservation system. It then provides test cases that trigger the different state transitions.

Uploaded by

Saima Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views5 pages

Software Testing: Assignment # 02 Banaras Ali FA15-BSE-154 Sec - 7C

This document contains two software testing assignments. The first assignment deals with testing a benefit calculation system based on work status, age, and number of children. It identifies the equivalence classes and test cases for the different attributes. The second assignment defines the states and draws a state transition diagram for an e-ticketing reservation system. It then provides test cases that trigger the different state transitions.

Uploaded by

Saima Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

4/25/2021 Software Testing

ASSIGNMENT # 02
Banaras Ali
FA15-BSE-154
SEC – 7C

MA’AM NAJMUN NISA


SOFTWARE TESTING
ASSIGNMENT 02 SOFTWARE TESTING

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.

1. Identify the equivalence classes for each attribute:

1. Equivalence Classes for Working Hours:


a. Every Simple Person receives 350 (Valid)
b. Working Person (Valid)
c. Not Working Person (valid)

2. Equivalence Classes for Age:


a. Person Age less than 40 (Invalid)
b. Person Age Equal to 40 or greater than 40 (Valid)

3. Equivalence Classes for Number of Children:


a. Person’s Children less than 4 (Invalid)
b. Person’s Children Equal to 4 (Valid)
c. Person’s Children greater than 4 (Invalid)

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

Test Class Partition Case Type Enter Value Result Expected


Case
No.
1 Age < 40. Invalid 25 No Extra
Benefit of 100
for Age
2 Age >= 40. Valid 45 Extra Benefit of
100 for Age

Test Class Partition Case Type Enter Value Result Expected


Case
No.
1 Less than 4. Invalid 2 No Extra
Benefit of 50
for Children
2 Greater than 4. Invalid 6 No Extra
Benefit of 50
for Children
3 Equal to 4. valid 4 Extra Benefit of
50 for Children

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

2. Write all the test cases that triggers all transitions


Test Case 1:
When Customer Make Reservation and pay amount, System prints ticket and
customer visits before boarding.

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

You might also like