Requirements Definition: Hotel Reservation

Total Page:16

File Type:pdf, Size:1020Kb

Requirements Definition: Hotel Reservation

Faculty of Information Technology Philadelphia University Department of Software Engineering Lecturer: Dr. Samer Odeh Hanna Examiner: Dr. Mohammad Taye

Software Testing (0721430) -Section 1 Tutorial 1 First Semester of academic year 2015-2016 Date: Dec., 15th 2015

A car insurance company provides insurance cover for vehicles. When a customer applies for insurance, the agent requests the following information: 1. Vehicle type 2. Vehicle production year 3. Age of the driver 4. If the vehicle has made accidents last year or not Vehicle type could be: Car, Truck, Van or Motorcycle.

For Car, Truck, and Van:

If the production year >=2010 then the insurance = 150 JD, if the production year >=2008 and <2010 then the insurance is 120 JD otherwise the insurance is 100 JD.

If the age of the driver is >= 60 then 20 JD is added to the insurance price

If vehicle had made an accident last year then another 30 is added to the insurance price.

The system outputs the amount of insurance according to the following:

For Motorcycles, the insurance price is always 80 JD.

Suppose that the insurance company has a method that is used to compute the insurance price for a vehicle given the previous information. The name of this method is find_insurance; The psudocode of this method is public int find_insurance(String type, int year, int age, boolean accident) { if type is car or truck or van then { if year>=2010 then insurance = 150 else if year>=2008 then insurance=110 else insurance = 100 if age > 60 then insurance+=20 if accident then insurance+=30 } else insurance = 75 }

1. Boundary value analysis 2. Robustness testing 3. Worst case testing 4. Worst case robustness testing

1 5. Special value testing 6. Weak normal equivalent class testing 7. Strong normal equivalent class testing 8. Weak robust equivalent class testing 9. Strong robust equivalent class testing 10. Modify the code based on the testing results.

2

Recommended publications