Sie sind auf Seite 1von 10

LOGIN TO MAIN MENU

TestCase 1: Login to main menu 1. From form Login, Type Quanly into textbox UserName 2. Type quanly into textbox Password 3. Press Enter Expect Result: Login OK, Main menu is displayed

TestCase 2: Login to main menu 1. From form Login, Type Quanly into textbox Username 2. Type into textbox Password any word thats not quanly 3. Press Enter Expect Result: Login fail, MessageBox is displayed, and show Username and Password is not correct

TestCase 3: Login to main menu 1. From form Login, Type Quanly into textbox Username 2. Dont type anything into textbox Password 3. Press Enter Expect Result: Login fail, MessageBox is displayed, and show Password is required

TestCase 4: Logout to Login Form 1. From Main menu QUANLY, Click H thng menu item 2. Click ng xut menu item Expect Result:

Main menu is closed, and Login form is displayed again.

TestCase 5: Open the Quan ly sach Form 1. From Main menu QUANLY, click Qun l menu item 2. Click Qun l sch menu item Expect Result: Qun l sch Form is displayed.

TestCase 6: Test Qun l sch Form GUI 1. Perform TestCase 5 (to open Qun l sch form) 2. Test the displayed Form is the same this image

Expect Result:

Qun l sch form GUI display correctly.

BUTTON TEST

Test Case 7: Buttons test 1. From Qun l sch form, press button Thm or button Sa Expect Result: These buttons are disable, Textboxes and buttons group Lu Khng lu are enable.

Test Case 8: Buttons test 1. Contrary to the above testcase, press button Lu or button Khng lu Expect Result: These buttons are disable, Textboxes and buttons Thm or button Sa are enable.

ADD NEW A BOOK RECORD


TestCase 9: Add new a book record 1. From Qun l sch form, Press button Them 2. Type XH01 into textbox M sch 3. Type X hi xa v nay into textbox Tn sch 4. Type Nguyn Vn Phc into textbox Tc gi 5. Type NXB Thng k into textbox Nh xut bn 6. Type 50000 into textbox Gi bn 7. Type 100 into textbox S lng tn

8. Choose X hi into combobox Th loi 9. Press button Lu Expect Result: A book record is added and a row is added to the ListView below

TestCase 10: Add new a book record 1. From Qun l sch form, Press button Them 2. Dont type anything into textboxes 3. Press button Lu Expect Result: Isnt saved, this record isnt added, messagebox is displayed, and show Information isnt full

TestCase 11: Add new a book record 1. Perform Testcase 7. 2. But try to type abc into textbox Gi bn or type abc into textbox S lng tn 3. And Press button Lu Expect Result: Not allowed to type any letter From A-> Z the textbox Gi bn, textbox S lng tn.

TestCase 12: Add new a book record 1. After the database have a record with BookID XH01 2. Perform Testcase 7 (to add new a new record) 3. But type XH01 into textbox M sch 4. And Press button Lu

Expect Result: Isnt saved, this record isnt added, messagebox is displayed, and show This bookID has already existed

TestCase 13: Add new a book record 1. Perform Testcase 7 (to add new a new record) 2. And Press button Khng Lu Expect Result: Isnt saved, this record isnt added, textboxes are disable, button Thm is enable and focused.

EDIT INFORMATION A BOOK RECORD


TestCase 14: Edit information a book record 1. Choose a book record that you want to edit into the Listview below ( to load information into textboxes. Example: a record have id XH01 and name X hi xa v nay 2. Press button Sa 3. Edit X hi xa v nay to X hi hin i 4. Press button Lu Expect Result: This book record is edited and this data is update to ListView.

TestCase 15: Edit information a book record

1. Choose a book record that you want to edit into the Listview below ( to load information into textboxes. Example: a record have id XH01 and name X hi xa v nay 2. Press button Sa 3. Edit id XH01 to XH02 4. Press button Lu Expect Result: Not allowed to type anything into textbox M sch.

TestCase 16: Edit information a book record 1. From Qun l sch form, while Listview item isnt selected, press button Sa Expect Result: Messagebox is displayed, and show Choose a book that you want to edit information

TestCase 17: Edit information a book record 1. Perform testcase 14 ( to choose a book) 2. But this time press button Khng lu Expect Result: Isnt save, this record isnt update, textboxes are disable, button Sa is enable.

DELETE A BOOK RECORD


TestCase 18: Delete a book record 1. Choose a book record that you want to delete into the Listview below 2. Press button Xa

3. After messagebox is displayed, and show Are you sure you want to delete this book, Warning ! Delete Data. 4. Press Yes. Expect Result: This book record is deleted and this data is deleted from ListView.

TestCase 19: Delete a book record 1. Choose a book record that you want to delete into the Listview below 2. Press button Xa 3. After messagebox is displayed, and show Are you sure you want to delete this book, Warning ! Delete Data. 4. Press No. Expect Result: This book record isnt deleted.

TestCase 20: Delete a book record 1. From Qun l sch form, while Listview item isnt selected, press button Xa Expect Result: Messagebox is displayed, and show Choose a book that you want to delete.

FORM TRA CU SCH


TestCase 21: Open the Tra cu sch Form 1. From Main menu QUANLY, click Tra cu menu item Expect Result: Tra cu sch Form is displayed.

TestCase 22: Open the Tra cu sch Form 1. From Login Form, click Tra cu button Expect Result: Tra cu sch Form is displayed.

TestCase 23: Test Qun l sch Form GUI 1. Perform TestCase 21 or testcase 22 (to open Tra cu sch form) 2. Test the displayed Form is the same this image

Expect Result: Tra cu sch form GUI display correctly.

TestCase 24: Search 1. From Login Form, choose a option in combobox Tra cu theo 2. Choose Tt c 3. Press Search button Expect Result: All books is displayed into Listview

TestCase 25: Search 1. From Login Form, choose a option in combobox Tra cu theo 2. Choose Theo ta sch 3. Type phong thy into textbox Ni dung tra cu 4. Press Search button Expect Result: Books which the word phong thy in the name, is loaded into Listview Kt qu below.

TestCase 26: Search 1. From Login Form, choose a option in combobox Tra cu theo 2. Choose Theo ta sch 3. Dont type anything into textbox Ni dung tra cu 4. Press Search button Expect Result: Messagebox is displayed, and show Search term is required

TestCase 27: Search 1. From Login Form, choose a option in combobox Tra cu theo 2. Choose Theo ta sch 3. Type into textbox Ni dung tra cu any word that the search tern doesnt return any result. 4. Press Search button Expect Result: Messagebox is displayed, and show Search tern is not found

Das könnte Ihnen auch gefallen