acme dorm management system presented by group...

24
UNIT TESTING ACME Dorm Management System Presented by Group B

Upload: phambao

Post on 04-Jun-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

UNIT TESTING

ACME Dorm Management System

Presented by Group B

UNIT TESTTING Test Cases: Created by: N. M. Executed By: O.A. Item Tested: Cancel Button on login Form.

Id/Description Input/Expected Output SQA analyst/Date Executed

Actual result

User click cancel to cancel login. Subject: cancels user login at to the system

User clicks the cancel button. OK:

Login window still present. But any information previously entered is cleared.

ERROR:

System Logs user in.

Login window retains information entered.

Login window disappears.

System shuts down.

O.A.

07/12/07

PASS: Login in cancelled. Login window displayed with no information.

Item Tested: Item name input box on Sales form. Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User enters item name which contains only special characters. Subject: Allows user to enter a alphanumeric value

User enters an item name which contains only special characters example ($!*&) OK:

Error message displayed on the screen, indicating that an item name must contain only numbers and letters.

ERROR:

System accepts error and prompts the user to enter values in the next field.

O.A. 07/12/07

PASS: Error message displayed indicating item name must contain only numbers and characters. Information not retained in textbox.

Item Tested: Number of item sold upper limits, when creating a sale. Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User enters an integer value which represents the amount sold which is greater than the amount available. Subject: Allows user to specify how much of the specific item sold.

Item to be sold is already selected, and displayed on the screen. User enters an integer value which represents the amount sold which is greater than the amount available. OK:

Error message displayed Indicating that the amount entered must be less than or equal to the number available. ERROR:

System accepts input, and allows the user to continue uninterrupted.

O.A. 07/12/07

FAILED: The Amount entered exceeded the amount available by one unit. System accepted input. No error message indicated.

Item Tested: Enter Button on the sales Form. Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User clicks Enter button, without entering any information. Subject: Allows user to save a sale transaction

User does not enter any information in the provided text box. OK:

Message box notifying the user that data must be entered into the textbox field pops up.

Item is not saved to database.

ERROR:

Sales record created and stored in database.

O.A. 07/12/07

FAILED: Notification message box doesn’t popup

Item Tested: Cancel Button on sales Form. Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User clicks Cancel Button. Subject: Allows user to cancel a possible sale transaction.

User enters all information in the provided textbox. OK:

User is redirected back to the main menu page.

No Sales record Created.

ERROR:

Sales Record created and saved

O.A. 07/12/07

PASS: User is redirected back to the main menu page. No sales record created.

Item Tested: Search by Scanned Barcode. Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User Searches by barcode Subject: Allows user to search for an item.

User scans the barcode and select search by Item Id. User clicks search. OK:

One record displayed

ERROR: Multiple records are

displayed. No record is

displayed Window closes.

O.A. 07/12/07

PASS: One record

is displayed.

Item Tested: Search by Item Name. Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User Searches by item name. Subject: Allows user to search for an item by item name.

User analyze database and searches for the for the first item record stored in the items table. OK:

All items which have the item name specified returned, and displayed.

ERROR: No item(s) returned

and displayed in grid.

O.A. 07/12/07

FAILED: first record not returned. PASS: All other items with the specified item name is returned and displayed in the grid.

Total Number of Test Cases

Total Number of Test Cases Executed

Total Number of Test Cases that

Completely Pass

Total Number of Test Cases with

Failures 7 7 4 3

UNIT TESTTING

Test Cases: Created by: O.A. Executed By: N. M. Item tested: Item deletion by item name Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User deletes item by item name Subject: Allows user to search for an item by item name and delete item

User enters the item name and selects “item name” in the search by dropdown menu. OK:

One or more records matching the item name is retrieved if item name exists in database, user selects an item to delete, clicks on the delete button and item no longer shows on the grid.

User attempts to delete multiple item by selecting multiple items from the search result grid and gets a message pop-up box saying multiple items can’t be deleted

User clicks delete button after performing a search without selecting an item, and a message pop-up prompting for item selection prior to deletion is displayed

N. M. 07/12/07

FAILED: Successfully deleted item stills shows up on the result grid immediately after the delete button in clicked. PASS: a single item which is existing in the database is successfully deleted and doesn’t show up on result grid on subsequent search for that item name is performed

on screen If no item matching

item name being search for, an error message box stating “item not found” pops up, and the delete button is disabled

ERROR: A single item selected

and deleted after pressing the delete button still shows in result grid.

Multiple items selected and no message box pops up warning of the invalid action attempted.

If no item was selected to be deleted, and delete button clicked, all search results in the grid were deleted

Item tested: Item deletion by item condition Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User deletes item by item condition Subject: Allows user to search for an item by item condition and delete an item

User enters the item name and selects “item name” in the search by dropdown menu. OK:

One or more records matching the item condition is retrieved if item with the condition exists in database, user selects an item to delete, clicks on the delete button and item no longer shows on the grid.

User attempts to delete multiple item by selecting multiple items from the search result grid and gets a message pop-up box saying multiple items can’t be deleted

User clicks delete button after performing a search without selecting an item, and a message pop-up prompting for item selection prior to deletion is displayed on screen

ERROR: A single item

selected and deleted after pressing the delete button still shows in result grid.

N. M. 07/12/07

PASS: a single item which is existing in the database is successfully deleted and doesn’t show up on result grid immediately after the delete button is clicked or subsequent search for that that item condition is performed

Multiple items selected and no message box pops up warning of the invalid action attempted.

If no item was selected to be deleted, and delete button clicked, all search results in the grid were deleted

Item tested: Checkout history for an item Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User clicks on rent item, enters item details and then clicks on checkout history Subject: Allows users to view the checkout history for an item

User enters a valid alphanumeric item name and clicks the checkout history button OK:

One or more checkout records matching the item name is retrieved if item has been checked out before and is displayed on the checkout history page

User enters a valid item name for an item which has never been checked out before, and a message box pops up stating that no checkout history record exists for the item and user is not redirected to another page.

ERROR: For an item that has

never been checked out, no message box pops up relaying this information to the user and user is redirected to the checkout history page.

For an item that has been checked out before, no records are displayed on the checkout history result grid.

N. M. 07/12/07

FAILED: For item that has never been checked out before, the user is redirected to the checkout history page PASS: For item that has been checked out before, user is redirected to the checkout history page and true records matching that item name is displayed

Item tested: Checkout history page navigation Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User is currently on the checkout history page and presses the main menu link. Subject: Allows users to navigate away from the checkout history page to the main menu.

User clicks on main menu navigation and is redirected to main menu page. OK:

User clicks on the “Main Menu” link and is redirected to the main menu page

ERROR: User clicks on a

navigation link but still remains on the check out history page

User clicks on a navigation link and redirected to a different page other than the main menu page. .

N. M. 07/12/07

PASS: User clicks on the “Main Menu” link and is redirected to the main menu page

Item tested: Return item button on return item page Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User clicks the return item button on the return loan item page

User enters/ scans in a valid alphanumeric item ID and clicks the return item button OK:

N. M. 07/12/07

FAILED: No message box appears after user clicks the return

Subject: Allows users to return a loan item

Item must be entered/ scanned by the Item ID (barcode) and the textboxes for name, id, model #, and loaned date will be populated. User then enters the return date, person ID, returned item condition, returns date and notes, and clicks the return item button.

The item should now be available for rent. If the button return item is clicked the item will be added back to the database and a message box will appear with message “Item returned successfully”.

ERROR: No message box

appears after user clicks the return item button

Item is still listed as been loaned out as seen in the database and checkout history

item button. PASS: The previously rented item is added back to the database, as available for rent.

Item tested: Cancel button on the return item page Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User clicks the cancel button on the return item page

User either enters or doesn’t enter item information and clicks the

N. M. 07/12/07

.FAILED: User clicks the

Subject: Allows users to cancel the current process of item returning

cancel button OK:

User is redirected back to the main menu page and no return item transaction record is saved to the database if the cancel button was pressed in the middle of a return item transaction.

ERROR:

User clicks the cancel button but is not redirected to the main menu page.

User clicks the cancel button in the middle of a return item transaction and item is returned and now available for rent.

User clicks the cancel button and is redirected to another page other than the main menu page

User clicks the cancel button and exits the system

cancel button in the middle of a return item transaction and item is returned and now available for rent.

Total Number of Test Cases

Total Number of Test Cases Executed

Total Number of Test Cases that

Completely Pass

Total Number of Test Cases with

Failures 6 6 2 4

UNIT TESTTING

Test Cases: Created by: G. A. Executed By: Z. C.

Item Tested – Create Item

ID/Description Input/Expected Output

SQA Analyst/Date

Executed

Actual Result

Item Name Text Box

User will input the item name into the textbox in alphanumeric

Chair OK:

Items Services Main Menu pops up and item created

ERROR:

User leaves the Item Name text box blank or not in alphanumeric

Z. C.

07/12/07

PASS: Items

Services Main Menu pops up

FAIL:

Message Box will pop up “Item Name text box must not be blank.”

Item Name Text Box

User will input the item name into the textbox in alphanumeric

@#%^ OK:

Items Services Main Menu pops up and item created

ERROR:

User leaves the Item Name text

Z. C.

07/12/07

PASS: Items

Services Main Menu pops up

FAIL:

Message Box will pop up “Item Name text box must not be blank.”

box blank or not in alphanumeric

Item Condition Combo Box

User will select from combo box one of the following: New, Good, Fair, Poor

Blank

OK: Message Box

will pop up and item created

ERROR:

User does not select a value from the combo box

Z. C. 07/12/07

PASS: Message

Box will pop up “Item successfully created.”

FAIL:

Message Box will pop up “Combo box must not be blank.”

Item Condition Combo Box

User will select from combo box one of the following: New, Good, Fair, Poor

New

OK: Message Box

will pop up and item created

ERROR:

User does not select a value from the combo box

Z. C. 07/12/07

PASS: Message

Box will pop up “Item successfully created.”

FAIL:

Message Box will pop up “Combo box must not be blank.”

Item Price text box

User will input the item price into the textbox in numeric form

19.99 OK:

Message Box will pop up and item created

ERROR:

User leaves the Item Price text box blank, is not numeric or less than or equal to 0.

Z. C. 07/12/07

PASS: Message

Box will pop up “Item successfully created.”

FAIL:

Message Box will pop up “Item price must be numeric and greater than zero.”

Item Price Aba PASS:

text box User will

input the item price into the textbox in numeric form

OK:

Message Box will pop up and item created

ERROR:

User leaves the Item Price text box blank, is not numeric or less than or equal to 0.

Z. C. 07/12/07

Message Box will pop up “Item successfully created.”

FAIL:

Message Box will pop up “Item price must be numeric and greater than zero.”

Item Price text box

User will input the item price into the textbox in numeric form

0.00 OK:

Message Box will pop up and item created

ERROR:

User leaves the Item Price text box blank, is not numeric or less than or equal to 0.

Z. C. 07/12/07

PASS: Message

Box will pop up “Item successfully created.”

FAIL:

Message Box will pop up “Item price must be numeric and greater than zero.”

Tallies

Total Number of Test Cases

Total Number of Test Cases Executed

Total Number of Test Cases that

Completely Pass

Total Number of Test Cases with

Failures 7 7 3 4

UNIT TESTTING

Test Cases: Created by: Z. C. Executed By: G. A. Unit Testing Resident Entry

- Resident ID Textbox (numerical input) Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User enters information into ResidentID textbox in Resident Entry. Subject: Provides input for the resident identification.

User enters a number into textbox OK:

Record is created Moves on to Room

Assignment ERROR:

Invalid Entry window pops up

Does not go to Room Assignment

Closes screen

G. A. 07/12/07

PASS: Record is

created in database.

Window changed to Room Assignment window.

No error message.

Resident ID Textbox (alphabetical input) Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User enters information into ResidentID textbox in Resident Entry. Subject: Provides input for the resident identification.

User enters a set of only alphabetical letters into textbox OK:

Invalid Entry window pops up

Does not go to Room Assignment

ERROR:

Record is created Moves on to Room

Assignment Closes screen

G. A. 07/12/07

PASS: Invalid

Entry window popped up.

Would not continue without changing the invalid field.

Resident Search

- View/Edit Button Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User presses View/Edit button. Subject: Moves onto Search Result screen.

User highlights specific entry in display box and presses the View/Edit button. OK:

Database is queried for all information on specific entry.

Search Results window appears with correct information based on selection

G. A. 07/12/07

FAIL: Window

stays opened.

Resident Search Results window does not appear.

ERROR:

Window closes and back to Main Menu

Does not move onto Search Results window.

Search Result

- Add Button Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User presses Add Button. Subject: Moves onto Incident Details window.

User presses Add Button OK:

Empty Incident Details window appears.

ERROR:

Invalid Entry window pops up

Goes back to Main Menu

Incident Details window contains another incident.

G. A. 07/12/07

FAIL: A full entry

appeared in the Incident Details window

Delete Button Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User presses Delete Button. Subject: Deletes highlighted incident from list.

User highlights selection and presses Delete Button OK:

Deletes the highlighted selection.

Stays in Search Results window.

ERROR:

Does not delete incident.

Moves onto Incident Details window.

G. A. 07/12/07

PASS: Record was

deleted from list

Incident Search

- View/Edit Button Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User presses View/Edit Button. Subject: Moves onto Incident Details window.

User presses View/Edit Button. OK:

Filled Incident Details window appears.

ERROR:

Invalid Entry window pops up

Goes back to Main Menu

G. A. 07/12/07

PASS: Correct

Incident appears.

Incident Details window appears.

Incident Details window contains another incident.

Wrong Incident Details appear.

Incident Details

- Ok Button Id/Description Input/Expected Output SQA

analyst/Date Executed

Actual result

User presses Ok Button. Subject: Enters the incident into the database. Should also appear now in the Resident Search Results page

User presses Ok button OK:

Goes back to Incident Search window.

Goes back to Resident Search Results window.

ERROR:

Stays in Incident Details window.

G. A. 07/12/07

PASS: Incident

Details window closes

Incident is logged into database.

Reverts back to the Incident Search window.

Total Number of Test Cases

Total Number of Test Cases Executed

Total Number of Test Cases that

Completely Pass

Total Number of Test Cases with

Failures 7 7 5 2

Unit Testing Summary

Total Number of Test Cases

Total Number of Test Cases Executed

Total Number of Test Cases that

Completely Pass

Total Number of Test Cases with

Failures 27 27 14 13