Web Test Essentials

Source: Internet
Author: User

I used to see an article here saying that to accumulate test points for each common module, and then to design test cases based on these test points when testing is required, I think this is a good way to summarize. My actual experience is not much, according to my in the forum to learn the scattered things and their own imagination, summed up the following points, welcome you continue to add.
1. Login
2. Add
3. Enquiry
4. Delete


1.        Login
①        User name and password are compliant (in format)
②        user name and password do not meet the requirements (format requirements)
③         the user name meets the requirements, the password does not meet the requirements (format requirements)
④        Password compliance requirements, User name does not meet requirements (format requirements)
⑤        user name or password is blank
⑥         the user name does not exist in the database, the password that does not exist
the user name that exists in the ⑦        database, and the wrong password
⑧         a user name that does not exist in the database, the password that exists
⑨        space before the data entered
⑩         Enter the correct user name password and press [Enter] to log in to

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
③         Designing test cases for other entries according to the principle of boundary value equivalence class design test Cases
④        do not meet the requirements of the error message
⑤         whether the table key is supported
⑥        press ENTER to save
⑦        If the hint cannot be saved, but also to see if there is more than one data in the database

3.        Delete
①        Delete the data that exists in a database. Then see if the database deletes
②        delete data that does not exist in a database, reads if there is an error, 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
⑤         Do not enter a
⑥        whether to indicate the table key
⑦         Whether the ENTER key is supported

4. Enquiry
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
Design features and interface test Cases

Design features and interface test Cases


1.1 Text boxes, buttons, and other control tests

1.1.1 A text box test

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 \ n, etc.;
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 a command button control

Test method:

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

Test method:

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

Test method:

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

Test method:

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 for check box

Test method:

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

Test method:

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. inserting files
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, 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 contents of the inserted source file.

3, inserting objects
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.

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, control
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.

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

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
Several use cases that are often used in practice

Login
1, the link address is correct.
2, when the input/output error is generated, the system is detected and processed.
3. Whether the password input box is displayed as a mask.

Menu
1. The link address of each module is correct.
2. If the mouse clicks without rules, it will produce unpredictable results.

Browse
1. Whether there is writing errors or grammatical errors in the browsing information.
2. Whether the browsing information is consistent with the corresponding fields and information in the database.
3. Whether the link button in the Browse page can be correctly linked and displayed.
4. When the other function button is pressed, the data is processed according to the established specification.

Add,modify:
1, when the input/output error is generated, the system is detected and processed.
2. Whether the list box can be selected.
3. If there is only one radio Coching in the Radio group.
4. Whether multi-data items can be selected in multi-select group.
5. Whether multi-item list box can make multi-data item selection.
6, the control whether there is a default input value, if so, whether the default value is displayed and submitted.
7. When a button such as Cancel is pressed, the data in the control is emptied or processed in accordance with the established protocol.
8, submit the button press, whether the data are submitted or according to the established statute.
9. When the other page buttons are pressed, the data is processed according to the established protocol.
10, the abnormal information is expressed correctly.

Search
1. If there are characters in the input information that conflict with the characters in the code, whether the system is detected and processed.
2, the abnormal information is expressed correctly.
3. The result of the query is correct.
4. Whether the list box can be selected.
5. If there is only one radio Coching in the Radio group.
6. Whether multi-data items can be selected in multi-select group.
7. Whether multi-item list box can make multi-data item selection.
8, submit the button press, whether the data are submitted or according to the established statute.


Statistic:
1, the resulting file and data table calculation results are correct.
2, the chart results data display is correct.
3. Whether the link button in the Browse page can be correctly linked and displayed.
4. When the other function button is pressed, the data is processed according to the established specification.
5, when the input/output error is generated, the system is detected and processed.
6. Whether the list box can be selected.
7. If there is only one radio Coching in the Radio group.
8. Whether multi-data items can be selected in multi-select group.
9. Whether multi-item list box can make multi-data item selection.

Web Test Essentials

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.