Ben Smithurst
Final Year Project  
next up previous contents
Next: Evaluation Up: A Web-Based Sports Centre Previous: Implementation   Contents

Subsections


Testing

This chapter focuses on one of the most important stages of software development, and one that is frequently neglected.

The testing has been divided up into three main parts: member features, staff features, and administrative features. Although some features, such as making bookings, are available to all types of user, the procedures differ enough to justify such a split. Within each part, there is a table listing test criteria for each major feature available to each type of user.


Member Features

Registration

Test Criterion Success Rectified
Does the registration procedure indicate success for a leeds.ac.uk address? Yes  
Does the registration procedure indicate success for a non-leeds.ac.uk address? Yes  
Does the registration procedure send an email containing the password? Yes  
Does the password allow the appropriate user to log in? Yes  
Does the registration procedure correctly assign usernames for a leeds.ac.uk address? Yes  
Does the registration procedure correctly assign usernames for a non-leeds.ac.uk address, even if the first choice of username already exists? Yes  


Making Bookings

Stage 1

Test Criterion Success Rectified
Do the ``more'' and ``less'' buttons correctly show and hide, respectively, the corresponding dropdown box? (Figure [*], page [*]) Yes  
Do the shortcut buttons correctly select the correct item from the corresponding dropdown box? (Figure [*]) Yes  
Does changing a dropdown box correctly select the appropriate shortcut button, or d-select all buttons, as appropriate? Yes  
Does the booking procedure advance to stage 2 when all criteria have been explicitly selected, either using the buttons or the dropdown boxes? Yes  

Stage 2

Test Criterion Success Rectified
Does the page correctly show a matrix of slots, with the correct venues and time slots? Yes  
Are slots which have already started correctly marked as such? Yes  
Are slots which have already been booked or reserved marked as booked? Yes  
Does the page correctly display slots, even when multiple different schedules are available for the set of venues? (Figure [*], page [*]) Yes  
Does the system only allow the user to proceed if at least one slot has been selected? Yes  

Stage 3

Test Criterion Success Rectified
Does the page correctly show a summary of the slots requested, along with the total cost? Yes  
Does the page correctly show which slots were successfully reserved and which could not be reserved? Yes  
Does the system correctly insert the reserved bookings into the database, including all parts of a compound booking? Yes  
Does the page only allow the user to proceed if at least one slot was successfully reserved and they have sufficient credit to book all of the reserved slots? Yes  

Stage 4

Test Criterion Success Rectified
Does the page correctly show a summary of the slots booked, along with corresponding identification numbers? Yes  
Does the system correctly mark the bookings as confirmed in the database, including all parts of a compound booking? Yes  
Does the system only confirm the bookings if the user has sufficient credit? Yes  
Does the system only show the Booking Successful message if all bookings were successfully confirmed? No Yes
Does the system correctly show a credit reminder if the user is low on credit? Yes  


User Account Management

Test Criterion Success Rectified
Does the page show the correct username, real name, and email address? Yes  
Does the page show the correct credit, user status, and staff status? Yes  
Does the password change feature work correctly? Yes  
Does the page correctly show a list of the user's future bookings? Yes  
Are non-refundable bookings (those within 24 hours of the current time) correctly marked as such? Yes  
Are slots correctly and completely removed from the database when they are cancelled, including all the parts of a compound booking? Yes  
Is a refund correctly applied to the user's account when cancelling a slot more than 24 hours away from the current time? Yes  
Is a refund correctly not applied to the user's account when cancelling a slot within 24 hours of the current time? Yes  


Staff Features

All features available to members are also available to staff, in more advanced forms (for example, a booking may be made on behalf of any member). Therefore, for such features, only the additional features will be listed in this section -- the basic features were already tested, and the results are shown in Section [*].

In this section, the term user refers to the member of staff using the system, while the term member refers to the sports member for whom the staff member is making a booking for.


Making Bookings

Stage 2

Test Criterion Success Rectified
Are booked slots correctly marked as such? Yes  
Are reserved slots correctly marked as such? Yes  
Do booked or reserved slots show the correct username and activity for that slot? Yes  
Does the system only allow the user to proceed if a username has been entered in the username text box? No Yes

Stage 3

Test Criterion Success Rectified
Is the user prompted to top-up the member's account credit if the account has insufficient funds to cover all the requested slots? Yes  
If a top-up is requested, does the system prompt the user to confirm they have collected the correct amount of funds from the member? Yes  

Stage 4

Test Criterion Success Rectified
If a top-up was requested at Stage 3, does the system correctly confirm that this top-up was made successfully? Yes  
If, after booking the requested slots, the member is low on credit, is the user prompted to top-up the member's account credit? Yes  


User Account Management

Test Criterion Success Rectified
Does the search function correctly find all user accounts which contain the specified search string either in the username, first name, or last name field? Yes  
If a search finds exactly one matching user, is that user's account information page displayed instead of a search result page? Yes  
If a search finds exactly zero matching users, is an error message shown along with a form to add a new user? No Yes
If the user presses the button to create a new user account, instead of pressing the button to search for users, is the error message stating that the user could not be found correctly not shown? Yes  
Do the options to view all user accounts where the username starts with a particular letter work correctly? Yes  
Does the option to switch between browsing by username and by last name work correctly? Yes  
Does the system allow the user to change all the fields made available for editing, and are these changes stored in the database correctly? Yes  
Does the password reset feature correctly send a new password to the member, and is the member allowed to log in with that password? Yes  


Administrative Features

Main Page

Test Criterion Success Rectified
Do the dropdown boxes all show the appropriate entries correctly? Yes  

Venue Class Management

Test Criterion Success Rectified
Are the fields displayed correctly? Yes  
Are changes to the fields stored correctly in the database? Yes  
Does the delete function correctly remove the appropriate item from the database? Yes  

Venue Management

Test Criterion Success Rectified
Are the fields displayed correctly? Yes  
Are changes to the fields stored correctly in the database? Yes  
Does the delete function correctly remove the appropriate item from the database? Yes  
Does the compound conversion feature correctly display all possible venues, for selecting the sub-parts to add to a compound venue? Yes  
Does deselecting all sub-parts of a compound venue correctly convert the venue back to a normal (non-compound) venue? Yes  

Activity Management

Test Criterion Success Rectified
Are the fields displayed correctly? Yes  
Are changes to the fields stored correctly in the database? Yes  
Does the delete function correctly remove the appropriate item from the database? Yes  

Periodic Booking Management

Test Criterion Success Rectified
Is a matrix of slots correctly shown for any weekday/venue class combination? No Yes
Are the appropriate periodic bookings correctly shown on the matrix? Yes  
Does entering a description correctly update or add periodic bookings to the database? Yes  
Do the three select buttons work correctly? Yes  
Does the delete function correctly remove the selected periodic bookings from the database? Yes  


next up previous contents
Next: Evaluation Up: A Web-Based Sports Centre Previous: Implementation   Contents
© 2002-2010 Ben Smithurst <web.1d36ca20@bensmithurst.com>