Objective
The previous article explained the app testing some function points. Then the corresponding also comb the Web test-related features of the test point, this article just give you a train of thought, if you want to involve each test point on the web side, basically impossible to achieve, so just provide a design idea, hope to broaden your horizons, so that you go farther. Come on, go straight to the dry!
One, input box
1, Character type input box:
(1) Character input box: Chinese, English full-width, English half-width, number, empty or blank space or carriage return, special characters (~ ~ @#¥%......&*? []{} "( with special attention to single quotes and & symbols ). Use the Copy + paste feature to try typing when you are prohibited from entering special characters directly.
(2) Length check: Minimum length, maximum length, minimum length-1, Maximum length + 1, input extra long characters such as copy the entire article past.
(3) Blank check: There are spaces between the characters entered, there are spaces before the characters, there are spaces after the characters, and there are spaces before and after the characters.
(4) Multi-line text box input: Allow carriage return line, save and then display can save the input format, only enter the carriage return line, check whether the correct save (if possible, check the saved results, if not, check if there is a normal prompt)
(5) Security check: Enter a special string (Null,null,,javascript,<script>,</script>,<title></title>,
2, Numeric input box:
(1) Boundary value: Max, MIN, max + 1, min-1
(2) Number of digits: minimum, maximum, minimum-1, maximum number of digits + 1, input extra-Long value
(3) Special characters: Enter Blank (NULL), Space, or "[Email protected]#$%^&* () _+{}| []\: ' <>?; ',./?;: ' = ' characters that can cause system errors, prohibit direct input of special characters, try to use a paste copy to see if it can be submitted properly, special features in Word, copy to input box via clipboard, page break, section break similar to the index of the formula, Special symbols for numeric values such as ∑,㏒,㏑,∏,+,-, etc.
(4) Outliers: input negative integers, negative decimals, fractions, input letters or Chinese characters, decimals (in the case of fractional first 0, multiple decimal points), the number of the first 0, such as 01, 02, scientific notation is supported 1.0E2, full-width and half-width numbers, numbers and letters mixed, 16 binary, 8 binary values, Currency input (allows several digits after the decimal point)
(5) Security check: Can not directly input on the copy, the input content as above
3. Date Type input box:
(1) Legality check: (Input 0 days, 1st, 32 days), month input [1, 3, 5, 7, 8, 10, 12], daily input [31], month input [4, 6, 9, 11], day input [30][31], enter non-leap year, month input [2], date input [28, 29], enter leap month input [2], date input [29, 30], month input [0, 1, 12, 13]
(2) Outliers, special characters: input blank or NULL, input ~! @#¥%......&* () {}[] and other characters that may cause system errors
(3) Security check: Can not directly input, copy, whether the data test error
4, information duplication: In some need to name, and the name should be the only information to enter a duplicate name or ID, see if the system has been processed, will be error, the same name includes whether it is case-sensitive, and the input before and after the input space, the system to make the correct processing
Second, search function
If the query condition is an input box, refer to the test method of the corresponding type of the input box
1. Function Realization:
(1) If a fuzzy query is supported, search for any character in the name to find out
(2) Whether the long name can be found
(3) The matching condition does not exist in the input system
(4) When the user queries the operation, the general situation is not to clear the query conditions, unless the requirements of special instructions.
(5) Pinyin Query
2. Combination test:
(1) Choose between different query criteria, whether there is a page error (Radio box and multi box is the most error prone)
(2) When testing multiple query conditions, we should pay attention to the combination test of the query conditions, possibly different combinations of tests will be error.
Third, Add, modify the function
1, Special key: (1) Whether the TAB key (2) supports the Enter
2, Prompt information: (1) do not meet the requirements of the place there are error tips
3, Uniqueness: (1) The field is unique, whether it can be added repeatedly, whether it can be modified as an existing field (the field includes case sensitivity and input space before and after the input, after saving, the data is really inserted into the database, note the correctness of the data after saving)
4. Data correctness:
(1) Edit each edit item on the editing page, click Save, whether it can be saved successfully, check whether the data you want to associate is updated.
(2) to carry out the required fields check (that is, whether to give hints and prompts, whether the data is still stored in the database;
(3) Whether it can be added continuously (for special cases)
(4) When editing, note the length limit of the edit item, sometimes at the time of adding, but not when editing (note to add and modify the rule is consistent)
(5) For the image upload function of the edit box, if you do not upload pictures, see the editing page when the default image is displayed, if you upload a picture, see if it is displayed as uploading pictures
(6) After the modification to increase the data, pay particular attention to the query page data is updated, especially in the first page to pay attention to the updating of data.
(7) When submitting data, repeatedly click to see if the system will add several consecutive data or error.
(8) If there is no record in the result list or a record is selected, click the Modify button, the system will throw an exception.
Iv. Delete function
1, Special key: (1) Whether the TAB key (2) supports the Enter
2, Prompt information: (1) Do not select any information, directly click the Delete button, whether there is a hint (2) when deleting a message, there should be a confirmation prompt
3, Data realization: (1) whether to delete multiple products (2) when there is only one data, whether you can delete the success (3) after deleting a piece of data, whether you can add the same data (4) If the system supports bulk deletion, note that the deleted information is correct (5) If there is a select all, Note whether to delete all the data (6) When deleting data, pay attention to whether the data of the corresponding query page is updated (7) If the deleted data is associated with other business data, be aware of its relevance (such as deleting departmental information, departmental downstream staff, Should be given a hint) (8) If there is no record in the results list or no record selected, clicking the Delete button will result in an error.
such as: A function module has the most basic additions and deletions to check the function, you need to conduct the following tests
Single function test (add, modify, query, delete)
Increase-and-increase (continuous increase test)
Add-on Delete
Add-on-delete (new additions consistent with deletions)
Added----delete
Modify-and-modify (continuous modification test)
Modified-Add (the new additions are consistent with the content before the change)
Modified--Delete
Modified--Delete--Add (new additions consistent with deletions)
Delete--delete (continuous delete test)
Five, registration, login module
1. Registration function:
(1) When registering, set the password to a special version number, check whether the login will be error
(2) After the registration is successful, the page should go to the homepage or the designated page by login status.
(3) After the successful registration, delete the registered account, check whether it can be registered successfully
(4) Register your registered account to check if you can register successfully
(5) Change the case of the user name and password of the existing user, to register. (Some requirements are case-sensitive, others are not)
(6) See if the tap and enter keys are supported, whether the password can be copied and pasted, whether the password is displayed as a secret symbol such as *
(7) For the account input and password input using equivalence class, the boundary value is good, here no longer
2. Login function:
(1) Enter the correct user name and the correct password
(2) Enter the correct user name and the wrong password
(3) Enter the wrong user name and the correct password
(4) Enter the wrong user name and the wrong password
(5) Do not enter a user name and password (all spaces)
(6) Enter the user name only, the password is empty
(7) User name is empty, enter password only
(8) Enter the correct user name and password, but not case sensitive
(9) User name and password include special characters
(10) User name and password input extra Long value
(11) deleted user name and password
(12) When you log in, the verification code is updated when the page refreshes or re-enters the data.
Six, upload pictures
(1) Upload a variety of mainstream picture format files
(2) Upload files in non-image format
(3) The size of the uploaded image file, a few k, hundreds K, to a few megabytes, a few 10 trillion
(4) Upload a picture file that is being used by another app
(5) Upload the manual input upload address
(6) Upload address input non-existent image address
(7) Upload address input image name to upload
(8) Do not select the file directly click Upload to see whether the prompt
(9) Select different files multiple times to see if the last selected file is uploaded
(10) Upload multiple image files simultaneously
Vii. List of query results
(1) List, column width is reasonable
(2) The list data is too wide to provide horizontal scrolling
(3) The column name of the list does not correspond to the content
(4) Whether the column name of each column of the list is clearly described
(5) Whether the list shows unnecessary columns
(6) Click on a column to sort the error (click to see if each page is sorted correctly)
(7) Double clicking or clicking on a column of information will cause an error
Viii. interface and ease of use testing
1. Harmony of style, style and color
2, the interface layout is neat, coordination (to ensure that all displayed, try not to use the scroll bar
3, the interface operation, the title description is appropriate (description is ambiguous, pay attention to whether there is a typo)
4, the operation is consistent with people's regular habits (there is no similar function of the control together, easy to operate)
5, the prompt interface whether to conform to the specification (should not display the English cancel, OK, should show Chinese determination, etc.)
6. Whether the controls in the interface are aligned
7. Whether the date control can be edited
8, the length of the date control is reasonable, in order to modify the time can be all displayed as a quasi-
9, the Query results list column width is reasonable, label description is reasonable
10. The query result list is too wide without horizontal scrolling hint
11, for long-message text, the text box has no automatic vertical scroll bar
12, data entry control is convenient
13, there is no Support tab key, the order of the keys to be organized, do not jump
14. There are no related hotkeys available
15, the control's prompt description is correct
16, the module call is unified, the same module is called the same interface
17. When you move a page with a scroll bar, the control of the page appears normal
18. The correct format for the date should be xxxx-xx-xx or xxxx-xx-xx XX:XX:XX
19. Are there any extra buttons or labels on the page?
20. Whether the window title or icon is consistent with the menu bar
21, the window to maximize, minimize whether the correct switch
22, for the normal function, the user can not read the user manual can be used
23, the implementation of risk operation, there is confirmation, deletion and other tips?
24, the operation sequence is reasonable
25, correctness check: Check the form on the page, button, table, header, footer, hint information, and other text spelling, sentence grammar and so on is correct.
26, the system should be the user to perform the wrong operation before the warning, prompt information.
27, the page resolution check, in a variety of resolution browsing system Check system interface-friendly.
28, the Reasonableness check: do delete, update, add, Cancel, back and other operations, check the information back to the page is reasonable.
29, check whether the localization through: English version should not have Chinese information, English translation accurate, professional
Nine, compatibility test
Compatibility testing does not only refer to interfaces that are compatible with different operating systems or browsers, but also to some functional aspects, including compatibility with operating system compatibility and application software compatibility, and possibly hardware compatibility. For example, the Ajax, jquery, JavaScript and other technologies, have to take into account the compatibility of different browsers.
Ten, Link test
Mainly to ensure the availability and correctness of links, it is also a more important aspect of site testing.
1. Navigation test
Navigation describes how a user operates within a page, between different user interface controls, such as buttons, dialogs, lists, Windows, and so on, or between different connection pages. You can decide whether a Web application is easy to navigate by considering the following questions: is navigation intuitive? Is the main part of the Web system accessible through the home page? Does the web system require a sitemap, search engine, or other navigational aids?
Putting too much information on a page tends to have the opposite effect as expected. Users of Web applications tend to drive the goal and quickly scan a Web application to see if they have the information they need, and if not, they leave quickly. Few users are willing to take the time to familiarize themselves with the structure of the Web application system, so the Web application navigation Help is as accurate as possible.
Another important aspect of navigation is the consistency of the Web application's page structure, navigation, menus, and connection styles. Make sure the user intuitively knows if there is content in the Web application and where the content is.
Once the hierarchy of Web application system is decided, it is necessary to test the user navigation function, let the end user participate in this kind of test, the effect will be more obvious.
2. Graphic test
In the Web application system, the appropriate picture and animation can play the role of advertising, but also to beautify the function of the page. A Web application's graphics can include pictures, animations, borders, colors, fonts, backgrounds, buttons, and so on. The contents of the graphic test are:
(1) To ensure that the graphics have a clear purpose, the picture or animation do not randomly stacked together, so as not to waste transmission time. Web application system picture size to be as small as possible, and to be able to clearly describe something, usually linked to a specific page.
(2) Verify that all page font styles are consistent.
(3) The background color should match the font color and foreground color.
(4) The size and quality of the picture is also a very important factor, generally using JPG or GIF compression, it is best to reduce the size of the picture to less than 30k.
(5) Finally, you need to verify that the text wrapping is correct. If the description text points to the picture to the right, make sure the picture appears on the right. Don't use pictures to make windows and paragraphs appear odd or orphan.
Generally speaking, using a little or not using the background is a good choice. If you want to use the background, then it is best to use monochrome, along with the navigation bar on the left side of the page. In addition, patterns and pictures may distract the user.
XI. Business Process Testing (main functional test )
Business process, generally involves multiple modules of data, so in the business process testing, the first to ensure the correctness of a single module function, followed by the data passed between the various modules to test, which is often prone to problems, the test must be designed to test the different data.
12. Safety Test
(1) SQL injection (e.g. landing page)
(2) XSS cross-site scripting attacks: The program or database does not filter or process some special characters, resulting in some of the user input of some destructive script statements can be directly written into the database, the browser will directly execute these script statements, the normal display of the Web site, or the user's information is stolen, construct script statements, To ensure the integrity of the script.
document.write ("abc")
<script>alter ("abc") </script>
(3) After the URL address, enter some symbols, and try to be dynamic parameters back
(4) Verification Code update problem
(5) The current Web application system basically uses the first registration, after landing. Therefore, you must test the valid and invalid user name and password, to notice whether the case is sensitive, how many times you can try the limit, whether you can browse a page without landing and so on.
(6) Whether the Web application system has a timeout limit, that is, the user login after a certain period of time (for example, 15 minutes) did not click on any page, whether the need to re-login to normal use.
(7) In order to ensure the security of Web application system, log files are very important. You need to test whether the relevant information is written into the log file and is traceable.
(8) When a secure socket is used, it is also necessary to test whether the encryption is correct and to check the integrity of the information.
(9) server-side scripts often constitute security vulnerabilities that are often exploited by hackers. Therefore, you also want to test the problem of not being authorized to place and edit scripts on the server side.
(10) Whether the user name password transmission process is encrypted transmission.
13. Other conditions that should be noted in the test
1, in the test, network-related steps or modules must take into account the situation of network disconnection
2, each page has the corresponding title, cannot be empty, or display "Untitled page"
3, in the test to consider when the page scroll bar, scroll bar scroll up and down, the page is normal
4, the URL is not case-sensitive, case-insensitive
5, for e-commerce sites, when the user concurrent purchase quantity is greater than the quantity of inventory, the system how to deal with
6, test data to avoid the simple input "123", "ABC" and so on, so that the test data as close to the actual
7, when testing, try not to use the Super Administrator to test, with the new user to test. Testers should try not to use the same user for testing
8. Prompt information: Whether the information is complete, correct, detailed
9, Help information: whether to provide help information, to help the presentation of information (page text, prompt information, help files), help information is correct, detailed
10, scalability: Whether by the upgrade of the room, whether to retain the interface
11, Stability: The hardware and software configuration required for operation, resource utilization, fault tolerance, data protection
12, the speed of operation: running slow, bandwidth occupancy
Web Test Point Grooming