Summary of common test points

Source: Internet
Author: User

Login, add, delete, query module is often encountered, the test points of these modules how to consider
1) Login
① user name and password are met (in the form of requirements)
② user name and password do not meet the requirements (format requirements)
③ user name meets the requirements, the password does not meet the requirements (format requirements)
④ password to meet the requirements, the user name does not meet the requirements (format requirements)
⑤ user name or password is empty
⑥ user name not present in the database, password not present
⑦ user name, wrong password, present in the database
⑧ a user name that does not exist in the database, the password that exists
⑨ there are spaces before the data entered
⑩ Enter the correct user name password and press [ENTER] to login
------------------------------------------------------------------------------------------------------

2) Add
① The data items you want to add are reasonable, check that the database has the appropriate data added
② leave a required data blank
③ Design test Cases for other input items according to the principle of boundary value equivalence class design test Cases
④ do not meet the requirements of the place to have a false hint
⑤ whether the table key is supported
⑥ Press ENTER to save
⑦ if the hint can not be saved, but also to see if there is more data in the database
------------------------------------------------------------------------------------------------------
3) Delete
① Delete data that exists in a database and then see if the database is deleted
② Delete data that does not exist in a database, read no error message, and no data is deleted in the database
③ Enter a malformed data to see if there is an error, and no data is deleted in the database.
④ the correct data entered before adding a space to see if the data can be deleted correctly
⑤ don't enter anything.
⑥ If the table key is indicated
⑦ whether the ENTER key is supported
------------------------------------------------------------------------------------------------------

4) Query
Exact query:
① input Query condition is the data that exists in the database, see whether can correctly detect the corresponding data
② Enter the correct query criteria before adding a space to see if the corresponding data can be correctly detected
③ input format or range does not meet the requirements of the data to see if there is an error message
④ data that does not exist in the input database
⑤ do not enter any data
⑥ whether the table key is supported
⑦ whether the ENTER key is supported

Fuzzy query:
On the basis of precise query, add the following point
① enter some characters to see if you can find out all the relevant information in the database

------------------------------------------------------------------------------------------------------
2. Designing Functional Test Cases

Control tests for text boxes, buttons, and so on
Testing of text boxes
How to test a text box
A, enter a normal letter or number.
b, enter the name of the file that already exists;
C, enter an extra long character. For example, in the Name box, enter more than the allowable bounds of the number of characters, assuming a maximum of 255 characters, try to enter 256 characters, check whether the program is handled correctly;
D, enter default value, blank, space;
E, if you only allow to enter letters, try to enter a number;
F, the use of copy, paste and other operations to force the input program is not allowed input data;
G, enter a special character set, for example, nul and so on;
h, enter characters or text beyond the length of the text box to check whether the input is displayed properly;
I, input inconsistent data, check whether the program is normal check, for example, the program requires the input date and date format is YY/MM/DD, the actual input yyyy/mm/dd, the program should give the error prompt
Test methods used during the test:
1, enter illegal data;
2, enter the default value;
3, enter a special character set;
4, enter the data that makes the buffer overflow;
5, enter the same file name;
------------------------------------------------------------------------------------------------------
Test of the command button control
A, click the button to respond to the action correctly. For example, click OK to perform the operation correctly; Click Cancel to exit the window;
b, the illegal input or operation to give enough hints, such as, enter the month working days is 32 o'clock, click "OK" after the system should be prompted: The number of days can not be greater than 31;
C, the operation that may cause data unrecoverable must give the confirmation information, give the user the opportunity to give up the choice;
Test for radio button controls
A, a group of radio buttons cannot be selected at the same time, only one is selected.
b, perform the function of each radio button one at a. After selecting the "Male" and "female" respectively, the data saved to the database should be "male" and "female" respectively.
C, a group of radio buttons that perform the same function must be selected by default at the initial state, and cannot be empty at the same time;
------------------------------------------------------------------------------------------------------
Up-down Control text Box test
A, enter the number directly or control with the up and down arrows, for example, enter 10 directly in number, or click the up arrow to change the number to 10;
b, use the up and down arrows to control the automatic rotation of the number, for example, when the maximum number is 253, click the up arrow, the number automatically becomes 1, but also applicable;
C, the direct input of the super-boundary value, the system should prompt re-input;
D, enter the default value, blank. For example, insert number is the default value, click OK, or delete the default value so that the content is empty, click OK to test;
E, enter a character. At this point the system should prompt for incorrect input.
------------------------------------------------------------------------------------------------------
Test of a combo list box
A, the contents of the article is correct, the details of its contents can be determined according to requirements;
b, perform the function of each entry in the list box one by one;
C, check whether you can enter data into the combo list box;
------------------------------------------------------------------------------------------------------
Test of the complex frame
A, multiple check boxes can be selected simultaneously;
b, multiple check boxes can be selected partially;
C, more than one check box can not be selected;
D, each to perform the function of each check box;
------------------------------------------------------------------------------------------------------
Testing of ListBox controls
A, the contents of the item are correct; similar to the combo list box, the contents of the list are correct and not lost or wrong according to the requirement specification;
b, the contents of the list box to use the scroll bar;
C, when the list box allows multiple selections, check the shift selection separately, press CTRL to select entries, and select multiple entries directly with the mouse;
------------------------------------------------------------------------------------------------------
Test for scroll bar control
Here are some points to note:
A, the length of the scrollbar is based on the length or width of the displayed information in a timely manner, so as to facilitate the user to understand the location and percentage of information displayed, for example, in Word browse 100 pages of documents, browse to 50 pages, scroll bar position should be in the middle;
b, drag the scroll bar, check the screen refresh, and see if there is garbled;
C, click the scroll bar;
D, use the roller control scroll bar;
E, scroll bar up and down buttons.
------------------------------------------------------------------------------------------------------
Testing when various controls are mixed and used in a form
A, interaction between the controls;
The order of the B,tab keys is generally from top to bottom, from left to right;
C, the use of hotkeys, each test;
The use of the D,enter key and the ESC key;

In the test, we should follow the principle of simple and complex, first test the function of a single control, ensure the implementation is correct, and then perform the test of the functional combination of multiple controls.
PS: The password input box should pay special attention to the test of uppercase and lowercase input.
------------------------------------------------------------------------------------------------------
Find replacement operations
Case Demo: Open the Replace dialog box in Word
Testing this function has passed the test and failed the test two cases
Pass the test:
1, enter the content directly to find, or find all
2, look in the combo box to find what has been found, again find and confirm that the contents of the document is correct, for example, has been found "test cases", again into the need to re-enter the search, directly in the document search.
Failure test:
1, enter a query string that is too long or too short. For example, if the string length of the query is 1 to 255, then input 0,1,2,256,255 and 254 are tested;
2. Enter a special character set, for example, in Word. ^g represents a picture, ^ represents a column break, you can enter this kind of special character test;
The replacement test is basically the same.

Use cases for functional testing of the Edit Operations window:
1, close the Find replacement window. Do not perform any action, exit directly;
2, Attachment and option test. If you set the "Exact search", "backward" search and other attachment options, etc. to test;
3, the interaction between controls. For example, when the search content is empty, the button "Search All", "search", "Replace All", "replace" are all gray.
4, Hotkey, tab. Use of the ENTER key.

Insert operation
1) Insert File
The situation of the test
A, insert the file;
b, insert image;
C, insert the document itself in the document;
D, remove the inserted source file;
E, replace the contents of the inserted source file;

2) linked files
Test method:
A, insert the linked file;
b, link the document itself in the document;
C, remove the inserted source file;
D, replace the contents of the inserted source file.

3) Insert Object
What to test
A, insert the object that the program allows, such as inserting an Excel worksheet in Word;
b, modify the contents of the inserted object. The inserted object will still display correctly;
C, uninstall the program that generated the inserted object, such as uninstalling Excel after inserting an Excel worksheet in Word, and the worksheet is still working.

Edit operation
Editing operations include cut, copy, and paste operations.
Methods for testing cutting operations
A, the text, text box, frame to cut;
b, cut the image
c, text image mixed cut

The copy operation method is similar to clipping.
Testing is primarily a test of the paste operation, as follows:
A, paste the cut text, text box and frame;
b, paste the cut image;
C, after clipping, paste in different programs
D, paste the same content more than once, such as, after cutting, in the program of continuous paste 3 times;
E, use the paste operation to force input data that the program does not allow.
--------------------------------------------------------------------------------------------
3. Design method of interface test case
1) Form
Methods to test the form:
A, the form size, the size should be appropriate, the control layout is reasonable;
b, move the form. Fast or slow mobile form, background and the form itself must be refreshed correctly;
C, to scale the form, the controls on the form should vary depending on the size of the form;
D, display resolution. It is necessary to test the display of the program at different resolutions.
When you test, you should also pay attention to whether the status bar is displayed correctly, whether the icon of the toolbar is valid, is consistent with the icon in the menu sloth, the error message content is correct, no typos, and so on;

2) controls
Test method:
A, the font and size of the form or control must be the same;
b, note the full-width, half-width mixing
C, no mix of Chinese and English.

3) Menu
Be careful when you test
A, select whether the menu can work properly, and the actual implementation of the content consistent;
b, whether there is a typo:
C, whether the shortcut keys are duplicated;
D, whether the hotkey is repeated;
E, shortcut keys and hotkey operation is valid
F, is there a mix of Chinese and English
G, the menu to be contextual, such as the user of different permissions to log in an application, different levels of users can see different levels of the menu and use different levels of functionality;
h, right mouse button shortcut menu
4) Special Properties
1, the installation interface should have company introduction or product introduction, have the company's icon
2, the main interface and most of the interface preferably have a company icon
3, select "Help", "about" command, you should see the relevant copyright and product information

Summarize:
In summing up the software testing knowledge of this period of time found that the software testing work to do a good job, how to improve the efficiency of our testing, the first is to find out the common function test points in the software, so the above content, the common work after the extraction, personality work to break through each, the work will become easy up.

Summary of common test points

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.