Home >Operation and Maintenance >Safety >What details need to be paid attention to in web testing?
1. Page display part
(1) First, pay attention to whether the page can be displayed completely, including whether different browsers can display it completely. In actual tests, some pages or pop-up windows of the page are often found. Unable to fully display
(2) Whether the animation effects or font effects in the page can be displayed correctly
(3) Whether some form items, input boxes, input fields and drop-down boxes on the page exist Default prompts, whether there are some prompts and some no prompts
(4) Whether there are multiple pieces of data in the data list are displayed in paging, and whether the page jumps normally after the paging operation
2. Page Resolution:
Does the page layout display normally in the resolution mode of 640x400, 600x800 or 1024x768? Is the font too small to browse? Or is it too large? Are the text and images aligned?
Usually it is the default resolution of the computer, but there are still some old computers with 1024*768
3. Single function test
a: Continuous increase
Note: After the addition is completed, check the data list. Fields that are not displayed or are not yet displayed are checked to see if they have not been added.
b: Delete after adding
Note: If there is a prompt message when deleting, click Delete only after confirming
c: Add, delete and then add
d: Continuously delete
e: Add and then modify
Note: If you modify during the modification process If the drop-down box form item is selected, whether the corresponding data has changed
f: Continuous modification
4. Browser compatibility:
The browser is the core of the Web client Components, browsers from different vendors have different support for Java, javascript, ActiveX, plug-ins or different HTML specifications. One way to test browser compatibility is to create a compatibility matrix. In this matrix, the adaptability of browsers from different manufacturers and different versions to certain components and settings is tested.
5. Ease of use:
Some users like to use shortcut keys on the keyboard when browsing the web, so when testing, pay attention to whether the shortcut keys are set. The shortcut keys that usually need to be set are the following.
Use of the Tab key: Tab key switching is supported on the page
Use of the Enter key: Some OK buttons on the page can be replaced by the enter keyboard
Forward and back: User forwarding and backward may cause incomplete data submission, repeated submission, or other display problems
Before the user deletes a certain data, the user needs to be prompted whether to delete it. The default focus selection is "No"
Page prompt language, js prompt language, program prompt language:
The prompt style is different, or the expression is not clear enough
6. Microsoft language standard:
Full-width characters and half-width characters must be separated by a space
English and numbers must be separated by spaces
Chinese characters and English, numbers must be separated by spaces
If there are Chinese characters Use full-width characters
Do not mix full-width and half-width punctuation in the language
In the language, never use the word "you". When describing further steps, use " Please" the word
7. Text abbreviation and line wrapping: If the
input box submits very long characters without breaking the line, the page may be stretched very long after submission. , if you want to process some text after the text as ellipsis, you need to be careful not to cut the Chinese into half a character
8. Display and link of the picture:
Whether to add a link to the picture is usually developed People ignore
The display position of pictures usually displays pictures with different pixel sizes and proportions, so the picture processing strategy must be clearly defined
9. Repeated submission:
User submission On the data page, the user may click the submit button multiple times in succession, resulting in repeated submission of data
After the user clicks "Submit", the button will change to the Disable state
10. Input judgment issues:
All special characters entered by the keyboard can be saved normally
Need to deal with the problem of program errors caused by English single quotes, English double quotes, etc.
Need to deal with "< ;" "/" "\" and other symbols that are easy to save errors
Make character planning for special modules
11. When multiple IEs access at the same time:
Users It is possible to open different IEs and use the same account to perform operations, and the issue of data consistency and synchronization
If multiple IEs use different users, will cookie operations cause confusion in user information
12. Security considerations:
Do not display sensitive user information such as passwords in plain text in the URL
Even if you are passing password parameters, do not use parameter names such as pwd and passportd. Pass to prevent interception
Use the NoCache parameter in the operation of passing parameters to prevent the url parameters from being cached
13. Prevent Sql injection:
Do not put the database or How to display the error message of the program on the page
The best program can filter out the keywords select, update, and delete and prevent users from submitting information containing these data
Design in the database Use easy-to-understand names for table names and field names with operating permissions
Try to filter out characters like "<>" in the input box to prevent JavaScript attacks
14. About Cookies :
Cookies are usually used to store user information and user operations in an application system. When a user uses Cookies to access an application system, the Web server will send information about the user and store the information in the form of Cookies. On the client computer, this can be used to create dynamic and custom pages or store information such as logins.
Note:
Cookie has no expiration time set
There is no prompt message when IE does not support cookies
The sensitive information in the cookie is not processed Encryption
15. Release of various resource links:
Sometimes the system cannot be accessed inexplicably, it may be that the database link is not released
During the stress test, the connection If the release is not efficient, a large number of connection timeout failures may occur
Prevention: During the release process of system resources, it is best to supervise each other through code review
16. About Keepalive settings :
If you need to obtain multiple resources in one connection at the same time, you need to turn on the Keepalive parameter of apache or resin to On to improve the system's processing capabilities and reduce the resources consumed by establishing multiple connections. If a large number of If it is only a one-time connection, do not open it.
Prevention: In actual work, keepalive needs to be set to On or Off to verify which setting has better performance.
Log configuration after the system goes online:
After going online, close a large amount of useless debugging log information and do not open too many logs
The above is the detailed content of What details need to be paid attention to in web testing?. For more information, please follow other related articles on the PHP Chinese website!