1. Page control model
1. Text input box control
Plain text boxes (without other types of controls) are mainly divided into password boxes, text boxes (TextBox) and multi-line text boxes (TextArea)
1.1 Password box
Test point:
character length
Whether to distinguish between uppercase and lowercase letters
Full-width and half-width input (numbers, English)
Whether to allow space characters
Whether the entered password is encrypted and displayed
Whether to support copy and paste
Whether to encrypt the password during transmission
Whether to encrypt and save in the database
Whether the password verification mode is comparison mode
Use operations such as copy and paste to force input of data that is not allowed to be input
Other test points are the same as ordinary text boxes
1.2 Text box (including single-line and multi-line)
Test point:
Input Chinese, English uppercase and lowercase, numbers, special characters, build valid equivalence classes and invalid equivalence classes
Full-width and half-width input (numbers, English) and display
Whether the input box is required (empty input)
Whether it is possible to enter spaces and how to deal with spaces (including full-width and half-width, Chinese and English, the beginning and end of text, and spaces between texts)
character length
Does not support shortcut key operations (Enter, Ctrl+"C/V/X/A/Z" copy, paste, cut, select all, cancel, etc.)
Use operations such as copy and paste to force the input of special characters (strings) that are not allowed in the input data: single quotes, double quotes, semicolons, Null, null, /, \, escape characters, etc.
JavaScript code: Hello, alert("hello")
HTML code: Hello,
Injected Bug
Whether to allow Enter to wrap
Whether to keep the input format display after saving
Can it be saved only by entering Enter and newline?
Whether it is possible to adjust the size of the text box, and whether it can adapt to other elements on the page when dragging to resize
When the input text is long, whether to appear a scroll bar or automatically expand the size of the text box
2. Single-select drop-down selection box control
Test point:
Check default options
The default option is selected after refreshing the page
All items in the selection box are displayed aligned
Support scrolling display when there is a lot of data
check required
length check
Sort Validation
3. Time selection box control
Test point:
Validation support is empty
Validation does not support empty
calendar component
Check display format: year month day
Full-width and half-width input (numbers, English) and display
Whether the time supports manual input
Check default date
If there are special symbols in the input date, an error should be prompted
If there is a special symbol in the input hour, an error should be prompted
If there is a special symbol in the input minute, an error should be prompted
If there is a special symbol in the input second, an error should be prompted
Enter the letter in the year, it should prompt an error
Enter the letter in the month, it should prompt an error
If there are letters in the input date, an error should be prompted
Enter the letter in the second, it should prompt an error
If there are Chinese characters in the input year, an error message should be displayed
If you enter Chinese characters in the month, an error message should be displayed
If there are Chinese characters in the input date, an error should be prompted
If there are Chinese characters in the input hour, an error message should be displayed
If there are Chinese characters in the input minutes, an error message should be displayed
If there are Chinese characters in the input seconds, an error should be prompted
Verify that the modification date field is valid correctly
Verify that the modified hour field is valid correctly
Verify that the modified minute field is correct and effective
Verify that the modified second field is correct and effective
2. Page action model
1. Page turning action
Test point:
Whether the overall style of the page turning control is beautiful and uniform, meeting the requirements
On a non-home page, click "Home" (or the icon button representing the home page), whether to jump to the first page, and the number "1" becomes selected
On a page other than the last page, click "Last Page" (or the icon button representing the last page), whether to jump to the last page, and the last digit becomes selected
Randomly click on the number page, whether the jump is correct, and the corresponding number becomes selected
Click "Previous Page" (or the icon button representing the previous page) on the non-home page, whether to jump to the previous page
Click "Previous Page" on the home page, whether the button is grayed out and cannot be clicked or does not jump or give a correct error message
Click "Next Page" (or the icon button representing the next page) on the non-last page, whether to jump to the next page
Click "Next Page" on the last page, whether the button is grayed out and cannot be clicked or does not jump or give a correct error message
When there are too many page numbers, click on the front, middle, and back page numbers respectively. Is the position of the "..." ellipsis and the number page button correct and reasonable?
Enter a valid number within the range of any page number in the page number input text box, and click "OK" to see if the page is correctly redirected
Enter 0, numbers exceeding the total number of pages, negative numbers, special characters, Chinese and English, full-width characters in the page number input text box, click "OK" to see if it does not jump or give a correct error message or does not allow input
Enter a space in the page number input text box (full-width, Chinese and English status), click "OK" to see if it does not jump or jump to the home page or does not allow input
The number entered in the page number input text box contains spaces (front, middle, back, full half-width, Chinese and English status)
Enter a valid number in the page number input text box, and press "Enter" to jump correctly
If there are no "First Page" and "Last Page" buttons, whether the number "1" and the total number of pages are always displayed
Is the textual information about the total number of pages correct?
When the page is long and the page turning control is at the bottom of the page, click the page number to jump to the top of the corresponding page
2. File upload action
Test point:
Check file upload path, (exists, does not exist), (manual, automatic)
Can you choose multiple
Whether to report an error when uploading something other than the specified type
File name, including special characters, spaces, etc.
filename length
File Size Test: Too Large, Too Small, Fit, Borderline
Upload a file in use
Upload the file with the same name repeatedly to check whether the result meets the requirements
Can the upload be canceled during the upload process?
Whether there is a progress bar display when uploading
Check the quality of files after upload, especially images
Check if uploaded images can be used/viewed
Whether to support breakpoint resume
3. File download action
Test point:
Whether the prompt of the current location is realistic and correct
Page aesthetics and ease of use (keyboard and mouse operations, tab jump sequence is correct)
Is the button text correct?
Is the descriptive text correct
Whether the correct/false prompt text is correct
Right-click to save as whether the file can be downloaded correctly, and the number of downloads is recorded
Whether the tool is downloaded correctly, and the number of downloads is recorded
Click download to prompt to download or open on the page
Whether it is displayed correctly when opened directly
Can you open files that do not have tools installed on this machine, and give correct prompts?
Whether the content opened directly in the page can be displayed normally, and the page aesthetics
Whether saving to local can display correctly
Whether to cancel the download will record the number of downloads
Whether the number of downloads is correctly recorded
Whether the files not published in the background can be found and downloaded in the foreground
Whether the files with download permissions set in the background can be viewed correctly and downloaded
4. Form clear/submit action
Test point:
Verify that the foreground data is cleared
Verify that the background data is cleared
Verify refresh page
Validation error target page
Verify correct target page
Validation supports single submission
check form validation
5. Select all/reverse selection action
Test point:
When no option is selected, click the Select All check box, whether all options are selected, the Select All check box becomes selected
When the options are all selected, click the check box to select all, whether to cancel the selection of all options, the check box for all selections becomes unselected
When the options are partially selected, click the Select All check box, whether all the options are selected, the Select All check box becomes selected
When the option part is selected, click the inverse check box, whether the option is selected in reverse, the inverse check box becomes the opposite state
6. Reset action
Test point:
Data items whose default value is empty are reset
Default values are reset for data items with existing values
Reset after modifying the value of all value data items
Reset after modifying the value of a value data item, and then reset
Refresh after modifying the value of a value data item, and then reset
After modifying the value of a value data item, perform related operations (queries, etc.), and then reset
After modifying the value of multiple value data items, perform related operations (queries, etc.), and then reset
3. Basic operation model
1. Single query operation
Test point:
Exact query for single condition respectively
Check the input length, enter the longest allowed value for query, whether it is supported
Whether the two query conditions are 2 to 1, choose back and forth whether there is a page error
Enter characters
Enter special characters
input Chinese characters
type in data
Conditions contain spaces
Enter extra long characters
Enter full-width characters
Enter single quotes
Enter data enclosed in single quotes
Enter double quotes
Enter data enclosed in double quotes
In what order are query results sorted?
Whether to display the sorting function according to the field of the query result
Whether the query result has pagination, if so, how many records per page
Does the query result match
Whether the query result is consistent with the database
Whether the query result is an exact query or a fuzzy query
Whether the input box size and text size are appropriate
Whether the query processing time is acceptable
When there is a large amount of data in the database, is the query processing time acceptable?
When multiple users query at the same time, whether the system responds in a timely manner after entering the same or different query conditions
2. Cascade query operation
Test point:
Enter an empty query for all conditions
Enter only one key condition query
Random combination condition query
Enter all key criteria query
All conditions are entered into the query
In what order are the query results sorted?
Whether the query result is displayed according to the field
Whether the query result is consistent with the database
3. New operation
Test point:
Initialize data correctness
After entering the function, no data items have been modified to run the new function
Run the new function after clearing all deletable data items in the function
Record all data in the full function
Insufficient disk space on the server, cannot add new
The primary key has the same name and uniqueness verification
The creation time is based on the server time
Is it possible to unsave under any circumstances
If there is a reset function, whether it is saved normally after reset
After the submission is successful, there will be a return result, a success or failure page or a real-time refresh list
If the new submission time is long, a progress display table should appear
Whether the newly added data is consistent with the database
Whether the system provides data echo, then the echo data is consistent with the newly added data
If there is a return to the list after adding data, the newly added data is usually ranked in the first row of the home page
4. Modify operation
Test point:
modify a record
Whether to support modifying multiple records at the same time
Multiple users modify the same record at the same time
Click "Cancel" or "Back" to give a prompt
After the submission is successful, there will be a return result, a success or failure page or a real-time refresh list
If the modification submission time is long, a progress display should appear
Whether the modified data is consistent with the database
5. Delete operation
Test point:
delete a record
Whether to support deleting multiple records at the same time
One user modifies, one user deletes the same record
Whether to delete when no record is selected
After the submission is successful, there will be a return result, a success or failure page or a real-time refresh list
If the node is not associated with other functions, it can be deleted; otherwise, it cannot
Whether the cascade delete was successful
6. Data import operation
Test point:
Whether to complete the normal data import function
Some data in the import file is imported abnormally
All data in the import file is imported abnormally
The key field value of the import file does not exist in the data for import
The data format of the import file does not meet the import
Is the display in the list correct after the data is imported?
Whether the display in the database is correct after the data is imported
In the technology industry, you must improve your technical skills and enrich your practical experience in automation projects. This will be very helpful for your career planning in the next few years and the depth of testing technology mastery.
Finally, I would like to thank everyone who has read my article carefully. Reciprocity is always necessary. Although it is not a very valuable thing, you can take it away if you need it:
These materials should be the most comprehensive and complete preparation warehouse for [software testing] friends. This warehouse has also accompanied tens of thousands of test engineers through the most difficult journey, and I hope it can help you! Partners can click the small card below to receive