Dry goods! Detailed WEB general test case design

1

Ease of use

      1. It is easy to use, understand, and can reduce the possibility of users making wrong choices

  2. When there are too many data fields, express the information in a way that is convenient for users to quickly absorb information, highlight key information, mark red, etc.

  3. Display information related to the current operation and give operation tips.

  4. The interface should support the keyboard automatic browsing button function, that is, the automatic switching function of pressing the Tab key and the enter key

  5. For commonly used functions, users do not need to read the user manual to use

2

consistency

    1. Is it in line with the habit of users using similar software?

  2. Consistency of the form of expression, fonts, buttons, control styles, colors, terminology, prompt information, etc. (You need to have a global concept. Don’t make each module follow their own style. As a result, the effect of each module is inconsistent. This is also crucial. All testers must carefully check)

  3. Consistency of interaction habits, query, add, edit, delete and other operations, and ensure that the button names of the same operation type are consistent. (The order is the same, and the page position should be the same as possible.)

  4. When the input box is unavailable for input or the control is unavailable, it is uniformly gray and unavailable for input;

3

Orderliness

    1. Interface text, forms, icons and other elements are arranged according to business rules and frequency of use

  2. The order of the Tab key should be consistent with the order of the controls. At present, the general trend is from top to bottom, and from left to right between lines.

  3. The prompt information of required items will be prompted in order from top to bottom and from left to right.

4

safety

    1. Can a simple password be used in the ID/password verification method? If the password standard is more than 6 digits, letters and numbers are mixed, no ID can be included, and consecutive letters or numbers cannot exceed n digits

  2. In the ID/password verification method, whether the account is locked after entering the wrong password several times in a row

  3. Without logging in to the system, directly enter whether the url of the logged-in page can be accessed (add interceptor)

  4. After logging out, press the back button to access the previous page (confirm that his session information is logged out after logging out)

  5. When the user unintentionally enters invalid and non-compliant data (such as e-mail, you need to verify whether his e-mail format is correct), and give a prompt message

  6. There is information to prompt when the user makes a dangerous choice, such as deleting important data of the system, or this operation may cause other effects on the system.

  7. The input characters or actions that may cause fatal errors or system errors should be restricted or shielded

  8. Provide users with UNDO function to cancel unexpected operations

  9. Whether the input special characters can be processed correctly: `~!@#$%^&*()_+-={}[]|\:;”' <>,./?

5

flexibility

      1. The user can freely make choices, and the choices are all reversible

  2. The user's convenience is the interactive multiplicity, not limited to a single tool (including mouse, keyboard or soft keyboard)

  3. When the page data soars and a long list appears, is there a scroll bar to ensure that the page displays complete information?

6

Humanize

       1. Users can customize the interface according to their own habits and save the settings

  2. Provide commonly used shortcuts

  3. Minimize the number of user input actions and speed up the input speed: for example, date, etc. can provide the default display of the current date and can be cleared and selected. The drop-down default selects "Please select", and the radio button defaults to select the most frequently used Options etc.

  4. Whether to use the least reasonable steps to achieve common operations to achieve high efficiency

  5. Whether to provide a progress bar, animation, etc. to reflect the ongoing and time-consuming process, (especially some operations may cause a long wait, and there is no intuitive display of the operating status or related prompt information, which is easy to make you unfamiliar with the system People misunderstand that there is a problem with the system)

  6. Whether to return necessary result information for important operations, such as: success, failure (reason for failure), being executed

  7. Whether important objects are expressed in eye-catching colors,

  8. Does the color use conform to the industry's habit? Does the hue of the interface make people feel harmonious and satisfied?

7

Page check

      1. The interface layout is orderly, concise and in line with user habits

  2. Whether the interface elements are aligned horizontally or vertically

  3. Is the size of the interface elements reasonable?

  4. Whether the row and column spacing is consistent

  5. Whether to properly use the blanks of forms and controls, and divide the lines

  6. When the window is switched, moved, and resized, is the interface displayed normally?

  7. After refreshing, whether the interface displays a reasonable layout normally

  8. Whether the page layout of different resolutions is reasonable and tidy, the resolution is generally 1024*768> 1280*1024 >800*600

  9. Whether the pages rendered under different browsers are deformed.

8

pop-up window

      1. The pop-up window should be vertically aligned in the center

  2. For the pop-up window interface with more content, an automatic full-screen function must be provided

  3. The main interface should be disabled when the window pops up to ensure the user's focus

  4. Whether the active window can be highlighted

9

Page correctness

    1. Are there any typos, or vague wording or confusion in the interface elements?

  2. When the user selects a check box in the page, and then goes back one page, and then forwards another page, whether the check box is still selected

  3. The navigation is displayed correctly

  4. The title is displayed correctly

  5. No garbled code displayed on the page

  6. Required controls are required, and there are required reminders, such as *

  7. Disable the function buttons at the right time (for example, the buttons will be grayed out or not displayed when there is no permission to operate in the permission control; the input box that cannot be input is disabled)

  8. There is no js error on the page

  9. Will there be unexpected results when the mouse is clicked irregularly?

  10. Whether the mouse can be recognized by the window when it has multiple shapes (for example, the window does not accept input when it is funnel-shaped)

10

Control check

    1. Display all by default when querying

  2. The default display when selecting, please select

  3. The style is grayed out when disabled

11

Checkbox

      1. Multiple check boxes can be selected at the same time

  2. Multiple check boxes can be partially selected

  3. Multiple check boxes may not be selected

  4. Execute the function of each check box one by one

  5. When there are too many checkboxes, the function of selecting all and unselecting all is provided

12

Single box

       1. A group of radio buttons cannot be selected at the same time, only one can be selected

  2. A group of radio buttons that perform the same function must be selected by default in the initial state, and cannot be empty at the same time.

image

 

13

Drop down tree

    1. Should support multiple selection and single selection

  2. The style is grayed out when disabled

14

Tree shape

    1. Each level is represented by different icons, and the lowest node has no plus or minus signs

  2. Provide all collapse and all expand functions

  3. Provide search and right-click functions if necessary, and prompt information if necessary

  4. When unfolding, the content refreshes normally

15

Calendar control

      1. Support the selection of year, month, day, year, month, day, hour, minute, and second rule

  2. When the calendar control is opened, the current date is displayed by default

16

Scroll bar control

      1. The length of the scroll bar is changed in time according to the length or width of the displayed information, which is helpful for users to understand the position and percentage of the displayed information. For example, when browsing a 100-page document in Word, when browsing to 50 pages, the scroll bar position should be in the middle

  2. Drag the scroll bar, check the screen refresh, and check whether there are garbled characters

  3. When the scroll bar is clicked, whether the page information is displayed correctly

  4. When using the scroll wheel to control the scroll bar, whether the page information is displayed correctly

  5. When using the up and down buttons of the scroll bar, whether the page information is displayed correctly

17

Button

      1. Whether the click button responds correctly to the operation. If you click OK, the operation is performed correctly; click Cancel to exit the window

  2. Give sufficient prompts and instructions for illegal input or operation

  3. Confirmation information must be given to operations that may cause data to be unrecoverable, giving users the opportunity to give up their choices (such as delete and other dangerous operations)

18

Text box

     1. Enter normal letters and numbers

  2. Enter the name of an existing file

  3. Enter a very long character.

  4. Enter the default value, blank, and space.

  5. If only letters are allowed, try to enter numbers; otherwise, try to enter letters

  6. Use copy, paste and other operations to force input data that is not allowed by the program

  7. Enter a special character set, for example, NUL and \n, etc.

  8. Enter data that does not conform to the format and check whether the program is properly verified. If the program requires the input of the year, month, and day format to be yy/mm/dd, actually enter yyyy/mm/dd, the program should give an error message.

19

Pagination

    1. Whether to use the paging control when there is a lot of list data.

  2. Whether the system uses the same style of paging controls.

20

Upload function check

     1. Check for uploading and downloading files: whether the function of uploading and downloading files is realized, whether the uploaded and downloaded files have format and size requirements, and whether exe.bat is blocked.

  2. Enter key check: directly press the enter key after the input, to see how the system handles it, and whether it will report an error. This place is likely to be wrong

  3. Refresh key check: In the Web system, use the browser’s refresh key to see how the system handles it and whether it will report an error.

  4. Back key check: In the Web system, use the browser back key to see how the system handles it and whether it will report an error. For systems that require user authentication, after logging out, use the back key to see how the system handles; use the back key multiple times and use the forward key multiple times to see how the system handles it.

      5. Direct URL link check: In the Web system, directly enter the URL address of each functional page to see how the system handles it. This is more important for systems that require user authentication. If the system security design is not good, directly enter the URL address of each function page, it is very likely that the page will open normally.

  6. Confirm that there is no upload data and click the upload button to see if there is a prompt

  7. Confirm whether to support image upload

  8. Confirm whether to support compressed package upload

  9. If it is a picture, whether it supports all formats (.jpeg, .jpg, .gif, .png, etc.)

  10. Whether the format of the audio file is supported (mp3, wav, mid, etc.)

  11. Whether video files of various formats are supported

  12. Is there any limit on the size of the uploaded file, and is the upload time acceptable to users?

  13. Does it support batch upload?

  14. If the network is interrupted during transmission, what will be displayed on the page

  15. After selecting the file, if I want to cancel the upload function, is there a delete button?

  16. After the file upload is over, is there a prompt message and can return to the original interface?

21

Add feature check

      1. Enter the relevant content correctly, including the required items, click the add button, and record whether it is successfully added

  2. Do not fill in the required items, enter other items correctly, click the Add button, whether the system has corresponding prompts

  3. Enter a space in the content item, click the add button, and record whether it can be added successfully

  4. Enter the characters that are not allowed in the system and click the add button in the content item, whether the system has corresponding prompts

  5. Enter the HTML script in the content item, click the Add button, and record whether it can be added successfully

  6. Fill in only the required items, click the Add button, and record whether the addition can be successful

  7. When adding a record fails, whether the original filling content is saved

  8. Whether the newly added record is arranged in the first row

  9. If the same record is repeatedly submitted, is there a corresponding prompt in the system?

22

Delete function check

      1. Select any record and delete it, can it be deleted successfully?

  2. Select multiple non-consecutive records and delete them. Can they be deleted successfully?

  3. Select multiple consecutive records and delete them. Can they be deleted successfully?

  4. Can batch delete operations be performed

  5. When deleting, is there a prompt to confirm the deletion?

23

Query function check

      1. Query for a single query condition, whether the system can query related records

  2. For multiple query conditions, perform a combined query, whether the system can query related records

  3. Can the system support fuzzy query?

  4. When the query conditions are all matched, can the system query related records?

  5. When the query conditions are all empty, can the system query related records?

  6. Enter% in the query condition, can the system query related records?

  7. Does the system support carriage return query?

  8. Is the system set to reset the query function?

Software testing exchange group: 785128166

WeChat public account: Programmer Erhei; After paying attention, you can receive a set of video resources for free; explain in detail: python automated testing, web automation, interface automation, mobile terminal automation, interview experience and other related content, the value of learning resources depends on you Action, don’t be a "collector"

Here is a collection of selected dry goods articles for functional testing:

Dry goods sharing | Featured article collection of functional tests (Are you afraid that you can't find the article you need?)

Guess you like

Origin blog.csdn.net/m0_52668874/article/details/115248514