Web testing of software testing (learning notes)

Source: Internet
Author: User
Tags in domain

1. Web test Related settings and viewing methods

2. Screenshots and recording screen operation during Web test

3, interface testing, functional testing, form test verification points

First, the characteristics of web testing

Web-based application testing is characterized by the ability of the user to access the specified URL Web page for testing via a browser installed on the computer.

Form testing, functional testing, interface testing, safety testing

Second, the Web Test Foundation
When doing Web application testing, it is necessary to accurately locate the test environment used, including the operating system/browser/flash player version number.

1. Get the software version number

Get the currently used Windows operating system version (OS edition) information
Right-click the [My Computer] icon on your desktop and select [Properties] to display the operating system information that the author is currently using.

Gets the current version of Internet Explorer (BS version) information used
Open IE Browser, mouse click menu [Help (H)]-> [about Internet Explorer (a)], will show the author's current version number of IE browser used

Get information about the Flash Player version currently in use (Flash Player edition)
Enter http://www.playerversion.com/in the browser address bar to display the Flash Player version number currently used by the author

Modifying the browser's proxy settings
Some special items require you to modify your browser's proxy settings

Found in "Settings" in the browser-"advanced"-"settings" to configure

Modify the Hosts file
Some projects before testing, you need to modify the local hosts file, otherwise you can not access the test site
C:\Windows\System32\drivers\etc
Open the Hosts file with a text editor, such as Notepad or EditPlus, and then at the end of the file content, enter the information you need to add, and then save it.
Note: If you use the system is win Vista or Win7 after the system, before modifying the Hosts file, you need to set the current account has the right to modify the Hosts file, otherwise it will appear: The file is read-only, save is unsuccessful.

Test online paid shopping
When testing online paid purchases, a credit card account is required and we do not need to use the actual information card information. This kind of project in the test, will generally give you a simulated information card account.

Some test sites also offer coupons (coupon): Coupons are usually a set of numbers. Then, when you make a payment, you can settle it with a set of numbers provided in the coupon.

The use of screen cutting software fscapture
The fscapture is a scratch-screen tool that is currently available in version 7.3 with a compact, powerful feature that supports all major picture formats including BMP, JPEG, JPEG 2000, GIF, PNG, PCX, TIFF, WMF, ICO, and TGA. The software is simple and straightforward to capture any area on the screen, allowing you to import images directly from your system, browser or other program.

The use of screen cutting software Jing
TechSmith company launched an application--jing; This is a set of screen recording and capture images and other functions of the application, need your computer to install the. NET Framework 3.0; In addition, Jing The biggest feature is the integration of video recording with the company's video sharing site Screencast, where you can quickly upload recorded video to the Screencast server via Jing.

2. Interface Test

User interface testing, in English, user interface testing, also known as UI testing, refers to the visible appearance of software and its underlying interaction with users, including menus, dialogs, Windows, and other controls.

User interface testing refers to whether the style of testing user interface satisfies customer requirements, whether the text is correct, whether the page is beautiful, text, picture combination is perfect, whether the operation is friendly and so on. The goal of the UI test is to ensure that the user interface provides the user with the appropriate access or browsing capabilities by testing the functionality of the object. Ensure that the user interface complies with company or industry standards. Including user-friendly, humanized, easy to operate test.

The user interface tests the user interface of the analysis software to meet user expectations or requirements. It often includes tests on menus, dialogs, and dialog boxes for all buttons, text, error hints, Help information (menu and content), and more. For example, test the size of the dialog box used by the caret feature in Microsoft Excel, whether all buttons are aligned, string font size, error message content and font size, toolbar position/icon, and so on.

Such as:
text/Picture overlap problem, text/Picture clipping problem, text/Picture not aligned, duplicate menu item or link, prompt message error, character display incomplete (cut off), garbled

tooltip corresponding to different, menu inconsistent, mouse small hand problem

Different browser reality problems, different versions of browser real-world problems, different os&browser display problems

Alignment issues, picture display problems ...

Other questions

The style style of each page is uniform. The size of each page is consistent, the same logo image in each page to show whether the size of the same, whether the page and the picture is centered, the color of the page is uniform, the foreground and background color with reasonable coordination, the contrast should not be too large, preferably less dark or barbed purpose color.

The title of each page is correct. Column name, article content, such as the text is correct, there is no typos or garbled; the same level of font, size, color is uniform.

Whether the navigation is displayed at the appropriate column level or whether the navigation text appears on the same line.

Article List page, the left column is the first level, two column name, the order of the same.

Hints, warnings, or error descriptions should be clear and understandable, using words accurately and rejecting ambiguous words.

All the images are loaded correctly, in different browsers, the resolution slice can be displayed correctly (including location, size).

When the window is resized, the window is zoomed out, the page is scaled down or the scroll bar appears, and the style of each page shrinks uniformly (proportionally or scrollbars appear).

Press the TAB key in a window to move the focus in order. Start from left to right, then top to bottom.

Button size is similar, avoid using too long name, so as not to occupy too much of the interface position, avoiding the Open interface to place a large button, the style of the buttons should be unified, the spacing between the buttons is consistent. Important command buttons with frequently used buttons are placed in the eye-catching position of the interface.

The wording of the menu item is accurate and can express the functions to be set, the order of the menu items is reasonable, and the items with logical associations are placed centrally.

During the whole process of interaction, the mouse operation can be recognized, and after multiple mouse clicks, it will still be recognized correctly. When the mouse does not have a rule click without adverse consequences, click the right mouse button popup shortcut menu, the right button after the menu is hidden.

All controls, descriptive information try to use the uniform size of the font attributes, in addition to special information, enhanced display and other exceptions.

Shortcut keys and menu options, press F1 in Windows always get help information, software design shortcuts can not be used correctly.

If you have scrolling information or pictures, place the mouse over it to see if scrolling information or pictures are stopped.

Adjust the resolution to verify that the page format is misaligned; The software interface should have a default resolution, and at other resolutions can also be run, respectively, in the 1024x768,1280x768,1280x1024,1200x1600 resolution of the large font, small fonts under the interface display normal.

Whether the effect is implemented by moving the mouse to the flash focus, and removing the focus effect disappears.

Terminology and commands, whether the same terminology is used throughout the software. For example: Find is always called find, not sometimes called search.
3. Function test
Functional test, English called functional testing. Functional testing in Web applications is primarily a test of whether page elements such as links to pages, buttons, and so on are working properly.

Connectivity issues
Link does not work, empty link, link page error, page link error, page Access resource is unavailable, 404Error appears

Button issues
button does not work/is not working properly, click the button to generate JS error

The functions that should be possessed by itself
The feature is not implemented, and the function that has the error corresponds to another function

Prompt questions
Missing prompt, message error/unreasonable, prompting for UI problem

ToolTip does not display: (image)
The alt attribute of the picture, only supports IE browser. If you want to display correctly in each browser, you need to change the ALT to title.

Js Error problem
JS error at present only in IE can display, Firefox will block JS error, so see, of course, through the plugin Firefox can also see. JS error and feature is in the lower left corner of IE browser has a yellow exclamation point, if you visit the page has such a situation, it represents the existence of JS error page. Double-click the yellow exclamation mark in the lower left corner to see the details of the error.

Database access Error

Document cannot be downloaded

4. Form Test
When users fill out data to submit information to the Web server, they need to use form actions. Common form operations are: User registration, user login, query data, data sorting, put items into the shopping basket, modify the number of online purchases, fill in the consignee address through the net silver payment. In this case, we must test the integrity of the commit operation to verify the correctness of the information submitted to the server.

The main methods of form testing are: Boundary value test, equivalence class test, and Anomaly class test. The test ensures that each type has more than 2 typical input values to ensure a comprehensive test input.

text box testing common verification points

Enter a normal letter or number to verify that it is working correctly.

Enter an existing user name or e-mail name to verify that there is a unique checksum.

Enter extra-long strings, such as entering characters in the name box that exceed the allowable bounds, assuming a maximum of 255 characters, and attempting to enter 256 or more characters to check whether the program is handled correctly.

Enter default value, blank, space, check whether the program is handled correctly.

If you are allowed to enter only letters, try to enter a number, or try to enter a letter to check whether the program is handled correctly.

Use copy, paste and other operations to force the input program is not allowed to input data, check whether the program is handled correctly.

Enter a special character set, for example, null and \ n, to check whether the program handles correctly.

Enter Chinese, English, numeric, special characters (special attention to single quotes and backslashes) and the four-class mixed input to check whether the program is handled correctly.

Input inconsistent data, check whether the program is normal check, such as: The program required to enter the ID number, you enter the abc123, the program should give the error prompt.

Enter the HTML language
Input full-width, half-width of English, digital, special characters, etc., check whether the error.

Common authentication points for special input fields

Password box test common verification points

Is the password input field input data visible? The correct display of the password must be "******", not visible mode.

Can the password be all spaces? The password design must not be all spaces.

Is the password case sensitive? For example: password "[email protected]" and "[email protected]", must not be the same password.

Date Fill field common verification point

Enter the data is not qualified, check whether the program is normal check, such as: 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.

Invalid date processing, such as: Birthdate entered as 2013/02/30, we know that February is up to 29 days, check whether the program is wrong.

The date of birth is filled for a future date, such as 3214/12/12, to check if the program is wrong.

Set the end date before the start date to check for a normal check.

Phone numbers populate domain common verification points

The phone number should consist of a set of numbers that cannot contain English letters.

If there are extension numbers, the middle is separated by dashes.

Zip Code fill Field common verification point

Domestic zip codes are numbers.

British ZIP Code is a combination of letters and numbers, when we test foreign zip code, we need to check the country's postcode format.

E-mail fills domain common verification points

The format of e-mail is: [email protected], enter the wrong format such as: [Email protected],123,aa#aa.aa, check if there are error prompts.

Enter the correct email address, you need to be able to verify the pass, and receive the corresponding email.

Number of purchases fill in domain common verification points

Enter a maximum value for the number of purchases, and see if the amount of money accumulated is correct;

Enter a negative number in the amount of the purchase to check for proper handling;

Enter a number 0 in the number of purchases to check for proper handling;

Enter a letter A in the number of purchases to check for proper handling;

Enter a special symbol in the place where you fill in the number of purchases, and check that the page is displayed correctly.

Required fields common verification points

Required fields do not enter any content, submit directly, check whether there are error prompts;

Required fields only enter a space, and then submit, check whether there are error prompts;

The prompt for required fields is uniform.

Radio button Common verification point

A group of radio buttons cannot be selected at the same time, only one is selected;

Performs 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.

A group of radio buttons that perform the same function must have one selected by default at the initial state, and cannot be empty at the same time.

check box common verification points

Multiple check boxes can be selected simultaneously (select All);

Multiple check boxes can be partially selected (selected);

Multiple check boxes may not be selected (all);

Perform the function of each check box one after the other (after selecting Save, view the saved result is consistent with the selection).

Common verification points for large text areas

The input data exceeds the maximum number of characters, check what happens;

Input data is exactly the maximum number of characters, check whether it can be saved correctly;

Do not enter any data, check whether it can be saved correctly;

In the Firefox or Chrome browser, the large text area in the lower right corner can generally drag and drop, try to drag and drop with the mouse, check whether the interface is difficult to see or the scroll bar disappears.

Drop-down list box common verification points

Entry content is correct, no duplicates, no missing entries;

Performs the function of each entry in the list box one by one.

Sorting common verification points

Select the positive order, then check the reverse order;

The sort of text, check whether the order from A to Z;

The order of the price, number, etc., check whether the numerical size sequence;

If there are pagination, check whether the sorting is good first and then paged.

To test common verification points for pagination:

When there is no data, home, previous page, next page, last label all Gray, do not support click;

On the first page, "Home" "previous" label Gray; at the end of the page, "Next" "Last" label Gray, in the middle page, four tabs can be clicked, and jump correct;

After the page turn, the data in the list is still sorted in the order specified;

Whether each paging label is on the same horizontal line;

The page label style of the individual pages is consistent;

The total number of pages and the current number of pages are displayed correctly;

Whether it can jump to the specified number of pages correctly;

Enter non-numeric characters (English, special characters, etc.) at pagination, enter 0 or exceed the total number of pages, whether there is a friendly message;

Whether to support the monitoring of the ENTER key.

Search box fills domain common verification point

Whether the Search button function is implemented;

Enter the information that exists in the website, can search the result correctly;

Enter all the special characters in the keyboard for error; Special attention: _? ' # \/--< >; special characters;

Whether the system supports keyboard enter, TAB key;

Whether the search results page is consistent with other page styles;

Enter a space in the input field, click on the search system for errors;

The search input field in the site does not enter any content, whether the search is all the information or give a hint of information;

Accurate query or fuzzy query, if it is fuzzy query input: In the country, the query results are not all contain Chinese two words of information;

Focus is placed in the search box, the default content of the search box is automatically emptied;

Searches whether the input field implements the ENTER key listener event.

User Login Common authentication point

The user name and password are both compliant and correct to check if the login is successful;

User name and password do not meet the format requirements, check whether the login success and error prompts;

The user name meets the requirements, the password does not meet the requirements, check whether the login success and error prompts;

Password to meet the requirements, the user name does not meet the requirements, to check whether the login success and error prompts;

The user name or password is empty, check whether the login is successful and error prompt;

A user name that does not exist in the database, a password that does not exist, a check to see if the login succeeds and the error prompt;

The user name in the database, the wrong password, check whether the login is successful and the error prompt;

The user name that does not exist in the database, the password that exists, check whether the login succeeds and the error prompt;

Enter the user name or password before the existence of a space, to check whether the login success and error prompts;

Press ENTER on the keyboard to listen for events, to perform the login process.
! ,: "' + = \ _ @% ^ {} () <?;  ` * - /  | $ # & ~ [] <> >

All the special characters on the keyboard can be used to do the validation test of the input, that is, the Web page as long as there is blank, can fill in the blanks, the tester can enter these letter combinations to test.

Because the computer language processing in the case of character data is enclosed in single or double quotation marks, so we in the test, we can consciously fill in single quotation marks and double quotation marks, after committing to check whether there is an exception.

Because the names and values of the parameters in the URL in the Web test are delimited by a question mark and a symbol (? and &), we can consciously fill in the characters such as Aa?a=b and Bb&name=zhangsan when we are testing, such as entering a user name, and checking for exceptions after committing.

Because the URL in the page test in the parameter #, can be used as the anchor delimiter as well as the URL terminator, so we test, such as entering the registration password consciously fill in the Au#2c8, after the successful registration, try this password can login.

Because the way the data submitted by the Web page URL is divided into two kinds of get, one is post, especially when the get data is submitted, in order to prevent data truncation, the data will be URL-encoded, inappropriate encoding and decoding will cause the space and the plus sign decoding the same, so enter the registration password consciously fill in + + ++++, after the successful registration, try this password can login.

Because the Web page through the HTML language parsing, so in the registered user name, or name, consciously fill in <abc> or &LT;ZHANGSAN&GT, after the submission of check is not abnormal, login after the page can display the name of the normal.

Escape character processing common verification points

Test enter \ n or \ \ In the text box, check that the output is the same, if not the same as the user input is a flaw.

The test is entered as either single or double quotation marks in the text box, check the output is the same, if the output is \ ' or \ ' is wrong.

\b \f \ r \ n \ \ \ \ \ \
BACKSPACE paper wrap Feed return horizontal tab single quote double quote backslash

Multiple Quick commits

Assuming that the end customer's network or machine speed is slow, when clicking on registration or other operations, accidentally submitted the submit button repeatedly, there is no appropriate protection measures. If you click the same delete button repeatedly, there will be a system error.

Shared Page Session

Two tabs of the same browser share the same session, one has exited and the other is automatically logged out.

Different browsers do not share the session, such as a Firefox browser, one with IE browser, in one browser to exit, the other browser will not automatically quit.

Page Refresh

Page refresh can be user active Click Refresh or press F5 on the keyboard, the other is the program control of the page refresh, such as the registration of the submission of photos, the Web page is generally refreshed to show the photos we submitted.

Page refreshes often result in the loss of data submitted by the user, which is a test point that testers need to focus on.

Browser forward/Back button

Some Web pages, when we click the Forward and Back button on the browser, there will be a system error, or the page does not display properly. So clicking on the forward and Back buttons on the browser and observing their behavior in a Web test is also a test point that testers need to focus on.


Web testing of software testing (learning notes)

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.