You are on page 1of 2

4.

3 BLACK BOX TECHNIQUES ASSIGNMENT 1

Solution Partition means to divide a set of test conditions into groups or sets. Hence for the above scenario the partitions would be:

Full Fare

Saver Fare

Full Fare 4.01pm

Saver Fare

9.29am 9.30am

4.00pm

7.30pm 7.31pm

Now for the above scenario there is a problem; it is not known till what time in the night the train provides its service. Therefore an assumption is taken that the train will provided its service from 6.00 in the morning till 11.00 in the night.

Invalid 5.59am

Valid(for Full fare) 6.00am 9.29am

Valid(for Saver Fare) 9.30am 4.00pm

Valid(for Full fare) 4.01pm 7.30pm

Valid(for Saver Fare) 7.31pm 11.00pm

Invalid 11.01pm

Details showing the test condition, valid & Invalid Partitions and Valid & Invalid Boundaries in the table format.
Test Condition Time Entered Valid Partitions 6.00am 9.30am 4.01pm 7.31pm - 9.29am - 4.00pm - 7.30pm - 11.00pm Invalid Partitions < 6.00am > 11.00pm Any other value apart from time (wrong format of the time e.g. 13.01) No Fare Valid Boundaries 6.00am 9.00am 9.30am 4.00pm 4.01pm 7.30pm 7.31pm 11.00pm Invalid Boundaries Time < 6.00am Time >11.00pm

Fare Type

Full Fare Saver Fare

Test Cases
1. Time format The hour field to be in between 1 to 12 (any other value would be highlighted in red indicating its an invalid entry of time field.) The minute field to be in between 1 to 60 (any other value would be highlighted in red indicating its an invalid entry of time field.) Am and Pm will be selected from a drop down list. 2. Test Cases for Valid Partition 6.00am 8.05am 9.29am 9.30am 12.20pm 4.00pm 4.01pm 5.08pm 7.30pm 7.31pm 9.35pm 11.00pm 3. Test Cases for Invalid Partition 11.01pm -- 3.00am -- 5.59am 4. Test Cases for Valid Boundaries Full Fare Boundary test 6.00am 9.29am 4.01pm 7.30pm Saver Fare Boundary test 9.30am 4.00pm 7.31pm 11.00pm 5. Test Cases for Invalid Boundaries 4.00am A total of 15 partition test plus 8 boundary test and 3 time format test will be done; a sum of 26 tests. There are lot of test which will make it inefficient; therefore most of the boundary test can be done in the partition test; leaving us with 15 tests. The time format can also be tested in those 15 partition test. The problem faced in this testing is that the Invalid boundaries were not known therefore an assumption is taken. Full Fare (rush hour) Saver Fare Full Fare (rush hour) Saver Fare

You might also like