Главная страница Случайная страница КАТЕГОРИИ: АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатикаИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханикаОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторикаСоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансыХимияЧерчениеЭкологияЭкономикаЭлектроника |
Testing
Test Strategy: Like most of the program in the world, my library system also suffers from errors. I have decided to test my programs before it is hand to Ms. J…. I will use many different testing strategies to ensure that very possible error is considered. I will input both normal and abnormal values to test my system. Hopefully after the testing I can reduce the number of errors to almost zero. Test Plan
Test# 1: There is a presence check in most of the input forms. I test the outcome when I input Student Name and Contact but leave Student ID blank when adding a student into the database. Similarly, other input fields will produce the same warn messages when user do not enter anything into it. Test # 2: There is also a format check in all fields which only allow numeric inputs. The system should not allow any non-numeric values to be entered into the fields. I tried to enter a non-numeric value into one field and the system failed to response in the proper way.
After a deep consideration of the problem, I added a code into the project and solve to problem. The code is also added into other fields which may have the same problem. Test # 3: The last input check is to check a particular value of input. It is the number of a book. The library rules stated that any book that is inputted into the database must have at least one copy. That means the library must buy at least one copy of the book before it is available for the reader to borrow. The system will warn the user if the user tries to do so.
Test # 4: This test is very important for the system. It is the security check. I need to ensure that the password system functions well to avoid from safety problems. I tested a few group of wrong passwords and tried to enter the system. Only the correct password can let me in.
Only one set of wrong password is shown but I tested many other sets and proved that my system does not suffer from security issues.
Test# 5: I need to test whether or not the user can save data in the database. I tried to create a new student record and tried to view it in the database after it is inputted into the system. If two set of data is exactly the same, then the system is able to save data. Examiner Comment: there were also comments and results for all the other tests in the plan, the final test (Test 10) is shown below. Test# 10: There is always a chance that some books in the library have been borrowed away and there is no reserve left in the library. I need to check if my system can tell the user that no book is left during a borrow process. My system can successfully solve this problem.
Example 4c: Draughts Club project.
|