Inventory. A collection of test cases for common functional test points

1. Login, add, delete, and query modules are what we often encounter. How to consider the test points of these modules
 
  A. Login
  
  a. Both the user name and password meet the requirements (requirements on the format)
  b. The user name and password do not meet the requirements Requirements (requirements on the format)
  c. The user name meets the requirements, and the password does not meet the requirements (requirements on the format)
  d. The password meets the requirements, but the user name does not meet the requirements (requirements on the format)
  e. The user name or password is empty
  f . User name that does not exist in the
  database, password that does not exist g. User name that exists in the database, wrong password
  h. User name that does not exist in the database, password that exists
  i. There is a space before the entered data
  g. Enter the correct After the user name and password, press [enter] to log in
 
 B. Add
 
  a. The data items to be added are reasonable, check whether the corresponding data is added in the database
  b. Leave a required data blank
  c. According to the boundary value, etc. The principle of designing test cases for the price category Design test cases for other input items
  d. There should be error prompts where the requirements are not met
  . e. Whether the table key is supported
  . f. Press enter to save
  . g. If the prompt cannot be saved, also check the database Is there an extra piece of data?
  
 C. Delete
 
  a Delete the data that exists in a database, and then check whether it is deleted in the database
  b. Delete a data that does not exist in the database, read the book if there is an error message, and no data in the database has been deleted
  c. Enter a data in the wrong format to see if there is an error message and no data in the database has been deleted.
  d. Add a space before the correct data entered to see if the data can be deleted correctly
  e. Enter nothing
  f. Do you point out the table key
  g. Whether the enter key is supported
 
 D. Query
 
  precise query:
  
  a. The query condition entered is that it exists in the database data, to see whether it can correctly identify the corresponding available data
  b. enter the correct query before adding a space, see if you can correctly identify the corresponding data
  c. enter data format or range does not meet the requirements to see if there Error prompt
  d. Enter data that does not exist in the database
  e. Do not enter any data
  f. Whether it supports the table key
  g. Whether it supports the enter key
  
  Fuzzy query:
  
  add the following points on the basis of the precise query
  
  a. Enter some characters to see if Can find out all relevant information in the database
  
  2. Design functional test cases
  
  text box, button and other control testing
  text box test
  how to test the text box
  
  a. Enter normal letters or numbers.
  b. Enter the name of an existing file;
  c. Enter a long character. For example, in the "Name" box, enter more than the allowable number of characters, assuming a maximum of 255 characters, try to enter 256 characters, and check whether the program can handle it correctly;
  d. Enter the default values, blanks, and spaces;
  e. If only letters are allowed, try to enter numbers; otherwise; try to enter letters;
  f. Use copy, paste and other operations to force input data that is not allowed by the program;
  g. Enter special character sets, such as NUL and so on;
  h. Enter characters or text that exceeds the length of the text box, and check whether the entered content is displayed normally;
  i. Enter data that does not conform to the format, and check whether the program is properly verified. For example, the program requires the input year, month, and day format to be yy/mm/dd , Actually input yyyy/mm/dd, the program should give an error message
  
  about the test method used in the test process:
  
  a. Enter illegal data;
  b. Enter the default value;
  c. Enter the special character set;
  d. Enter the buffer Overflowing data;
  e. Enter the same file name;

Command button control test

a. Click the button to correctly respond to the operation. For example, click OK to perform the operation correctly; click Cancel to exit the window;
  b. Give sufficient prompts for illegal input or operation, for example, when the number of working days per month is 32, click "OK" and the system should Tip: The number of days cannot be greater than 31;
  c. Confirmation information must be given to operations that may cause data to be unrecoverable, giving the user the opportunity to give up the choice;
  
  the test of radio button controls
  
  a. A group of radio buttons cannot be selected at the same time, only selected One.
  b. Execute the function of each radio button one by one. After selecting "male" and "female" respectively, the data saved to the database should be correspondingly "male" and "female";
  c. A group of radio buttons that perform the same function must be selected by default in the initial state. Can not be empty at the same time;
  
  the test of the up-down control text box
  
  a. Directly enter a number or use the up and down arrows to control, for example, directly enter 10 in the "number", or click the up arrow to make the number become 10;
  b. Use the up and down arrows to control the automatic cycle of numbers. For example, when the maximum number is 253, click the up arrow and the number will automatically become 1; the reverse is also applicable;
  c. Enter the value beyond the boundary directly, and the system should prompt to re-enter;
  d. Enter Default value, blank. For example, the number of "inserts" is the default value, click "OK"; or, delete the default value, make the content empty, click "OK" to test;
  e. Enter the characters. At this time, the system should prompt that the input is incorrect.
  
  Combo list box test
  
  a. The item content is correct, and the detailed item content can be determined according to the requirements;
  b. Perform the function of each item in the list box one by one;
  c. Check whether you can enter data into the combo list box;
  
  check box Test
  
  a. Multiple check boxes can be selected at the same time;
  b. Multiple check boxes can be partially selected;
  c. Multiple check boxes may not be selected;
  d. Perform the function of each check box one by one;
  
  test the list box control
  
  a. The item content is correct; the same combination The list box is similar. According to the requirements manual, make sure that the contents of the list are correct, without loss or error;
  b. Use the scroll bar when the list box has more contents;
  c. When the list box allows multiple selections, check the shift selected items respectively, and press ctrl select items and directly use the mouse to select multiple items;
  
  the test of the scroll bar control
  
  should pay attention to the following points:
  
  a. The length of the scroll bar changes in time according to the length or width of the displayed information, which is helpful for the user to understand the location of the displayed information And percentage, for example, when browsing 100 pages of documents in Word, when browsing to 50 pages, the scroll bar position should be in the middle;
  b. Drag the scroll bar, check the screen refresh, and check whether there are garbled characters;
  c. Click the scroll bar;
  d, use the scroll wheel to control the scroll bar;
  e, the up and down buttons of the scroll bar.
  
  Tests when various controls are mixed and used in the form
  
  a. Interaction between controls
  ;
  b. The order of tab keys is generally from top to bottom, from left to right; c. Use of hot keys, test one by one;
  d The use of the .enter key and esc key;
  
  in the test, you should follow the principle of simplifying to complex, first test the function of a single control, and ensure that the implementation is correct, and then test the function combination of multiple controls.
  ps: When testing the password input box, pay special attention to the test of capital letter input.
  Find and replace operation
  Case demonstration: Open the "Replace" dialog box in Word.
  Test This function has two cases of passing test and failing test.
  
  Passing the test:
  
  1. Enter the content and search directly, or search all
  2. Search for the content that has been searched in the combo box, Search again and confirm that the content of the document is correct. For example, if you have already searched for "test case", you can search directly in the document without re-entering the search content.
  
  Failed test:
  
  1. Enter a query string that is too long or too short For example, if the query string length is 1 to 255, then enter 0,
  1, 2, 256, 255 and 254 to test; 2. Enter a special character set, for example, in word. g stands for picture, stands for column You can enter this type of special character test; the
  
  replacement test is basically the same:
  
  the use case of the function test of the editing operation window:
  
  a. Close the search and replace window. Do not perform any operation, and exit directly;
  b. Attachment and option test. If, set Set "precise search", "backward" search and other attachment options to test;
  c. The interaction between controls. For example, when the search content is empty, the buttons "search all", "search", "replace all", "Replace" is gray.
  d. Hotkey, Tab key. Use of Enter key.
  
  Insert operation
  
  1. Insert file
  Test case
  
  a, insert file;
  b, insert image;
  c, insert the document itself in the document;
  d , Remove the inserted source file;
  e, replace the content of the inserted source file;
  
  2.Link file
  
   Test method:
  
  a, insert the linked file;
  b, link the document itself in the document;
  c, remove the inserted source file;
  d, replace the content of the inserted source file.
  
 3. Insert
 
  the content to be tested by the object
  
  a, insert the program allows For example, insert an excel worksheet in the word;
  b, modify the content of the inserted object. The inserted object can still be displayed correctly;
  c, uninstall the program that generates the inserted object, for example, unload after inserting the excel worksheet in the word Excel, the worksheet is still in normal use.
  
  4. Editing operations
  
  editing operations include cutting, copying, and pasting operations.
  
  Test methods for cutting operations
  
  a. Cut text, text boxes, and graphic boxes;
  b. Cut images
  c .Mixed cutting of text and image    The
  copy operation method is similar to the cut. During the
  
  test, it is mainly to test the paste operation, the method is:
  
  a, paste the cut text, text box and graphic frame;
  b, paste the cut Image;
  c, after cutting, paste in different programs
  d, paste the same content multiple times, for example, after cutting, paste 3 times in the program;
  e, use the paste operation to force input data that is not allowed by the program .
  
  method for designing an interface test cases
 
  form
  
  the test method of the form:
  
  . a window size, size to fit a rational layout controls;
  b. Move the form. To move the form quickly or slowly, the background and the form itself must be refreshed correctly;
  c. Zoom the form, the controls on the form should change with the size of the form;
  d. Display resolution. It is necessary to test whether the display of the program is normal in the case of different resolutions;
  
  pay attention to whether the status bar is displayed correctly when testing ; whether the icon execution operation of the toolbar is effective and whether it is consistent with the icon display in the menu; whether the content of the error message Correct, no typos, and clear, etc.;
  
  control
  
  test method:
  
  a. The font and size of the form or control should be consistent;
  b. Pay attention to full-width, half-width mixed
  c. No Chinese and English mixed. When testing the
  
  menu
  
  , pay attention to
  
  a. Select Whether the menu works normally and is consistent with the actual execution content;
  b. Whether there are typos:
  c. Whether the shortcut keys are repeated;
  d. Whether the hot keys are repeated;
  e. Whether the shortcut keys and hot key operations are effective
  f. Whether there is a mixture of Chinese and English
  g. The menu should be context-related. For example, users with different permissions log in to an application, and users at different levels can see different levels of menus and use different levels of functions;
  h. Right-click shortcut menu
  
  special attributes
 
  1, installation interface There should be company introduction or product introduction, with company icon
  2, the main interface and most interfaces should preferably have company icon
  3, select "Help" -> "About" command, you should see the relevant copyright and product information
  
  summary:
  
  During the period of summarizing the knowledge of software testing, I discovered that the software testing should be done well and how to improve the efficiency of our testing. First of all, we must find out the common functional testing points in the software. After the extraction, the individual work breaks through one by one, and the work will become easier.

Written at the end:

Although you are tired when you are busy, you will be particularly refreshed and comfortable when you are busy. Although it is cool when you are free, your heart will become flustered when you are free for a long time. There is often only one reason why you are confused, and that is, at an age when you should work hard, thinking too much and doing too little.

Therefore, my friends set their goals, do not forget their original intentions, and move forward courageously, believing that in the end they will be able to bloom a flower of their own, come on.

Talk:

Here I recommend a software testing exchange group I created by myself, QQ: 642830685. The group will share software testing resources, test interview questions and testing industry information from time to time. You can actively exchange technology in the group, as well as industry leaders. Answer questions for you.

Friends who see here remember to raise your cute little hand and give me a thumbs up. Your thumbs-up is my inexhaustible motivation for being positive and writing.
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_54696666/article/details/114147937