登录
(1)用户名和密码都符合要求(格式上的要求)
(2)用户名和密码都不符合要求(格式上的要求)
(3)用户名符合要求,密码不符合要求(格式上的要求)
(4)密码符合要求,用户名不符合要求(格式上的要求)
(5)用户名或密码为空
(6)数据库中不存在的用户名,不存在的密码
(7)数据库中存在的用户名,错误的密码
(8)数据库中不存在的用户名,存在的密码
(9)输入的数据前存在空格
(10)输入正确的用户名密码
(11)按[enter]是否能登陆
(1) both the user name and password meet the requirements (format requirements)
(2) the user name and password do not meet the requirements (format requirements)
(3) the user name meets the requirements, and the password does not meet the requirements (format requirements)
(4) the password meets the requirements, and the user name does not meet the requirements (format requirements)
(5) the username or password is empty.
(6) the user name and password that do not exist in the database
(7) the user name and wrong password in the database
(8) the user name and password that do not exist in the database
(9) there are spaces before the input data
(10) enter the correct username and password
(11) Press [enter] to log in
添加
(1)要添加的数据项均合理,在界面保存成功后,检查数据库中是否添加了相应的数据:select查询
(2)留出一个必填数据为空
(3)按照边界值等价类设计测试用例的原则设计其他输入项的测试用例:数据组合测试
(4)不符合要求的地方要有错误提示
(5)是否支持table键
(6)按enter是否能保存
(7)若提示不能保存,也要察看数据库里是否多了一条数据
(1) the data items to be added are reasonable. After the interface is saved successfully, check whether the corresponding data is added to the database: select query
(2) leave a required data blank
(3) design test cases for other input items according to the principle of boundary value equivalence class: Data combination test
(4) If it does not meet the requirements, there should be an error message.
(5) whether the table key is supported
(6) press enter to save
(7) If the prompt cannot be saved, check whether there is one more piece of data in the database.
删除
(1)删除一个数据库中存在的数据,然后查看数据库中是否删除(界面删除一条数据,查看数据库中是否删除)
(2)删除一个数据库中并不存在的数据,看是否有错误提示,并且数据库中没有数据被删除
(3)输入一个格式错误的数据,看是否有错误提示,并且数据库中没有数据被删除。
(4)输入的正确数据前加空格,看是否能正确删除数据
(5)什么也不输入
(6)是否支持table键:tab键
(7)是否支持enter键
(1) delete the data in a database, and then check whether it is deleted from the database (the Interface deletes a piece of data to check whether it is deleted from the database)
(2) delete data that does not exist in a database to see if there is an error message and no data in the database has been deleted.
(3) enter a data with incorrect format to see if there is an error message and no data in the database has been deleted.
(4) add a space before the correct input data to see if the data can be deleted correctly.
(5) enter nothing
(6) whether table Key: tab key is supported
(7) whether the enter key is supported
查询
精确查询
(1)输入的查询条件为数据库中存在的数据,看是否能正确地查出相应得数据
(2)输入正确的查询条件以前加上空格,看是否能正确地查出相应的数据
(3)输入格式或范围不符合要求的数据,看是否有错误提示:如日期格式:YYYY-MM-DD;范围:月份中输入13等,一般这些数据都是枚举型数据,以下拉框的形式出现
(4)输入数据库中不存在的数据
(5)不输入任何数据:查询结果应该为所有记录
(6)是否支持table键
(7)是否支持enter键
(1) the input query condition is the data existing in the database to see if the corresponding data can be found correctly.
(2) add spaces before entering the correct query criteria to see if the corresponding data can be found correctly.
(3) enter data whose format or range does not meet the requirements to see if there is any error message: for example, date format: YYYY-MM-DD; Range: Enter 13 in the month, etc. Generally, these data are enumerated data and appear in the form of a drop-down box.
(4) input data that does not exist in the database
(5) Do not enter any data: the query result should be all records
(6) whether the table key is supported (7) whether the enter key is supported
模糊查询
在精确查询的基础上加上以下一点:输入一些字符,看是否能查出数据库中所有的相关信息
Add the following points to the exact query: enter some characters to see if all relevant information in the database can be found.