Key Points of Web application testing

Source: Internet
Author: User

I. Function Testing

1. LINK TEST

Links are a major feature of Web application systems. They are the main means of switching between pages and guiding users to access pages with unknown addresses. The link test can be divided into three aspects. First, test whether all links actually link to the page of The Link as instructed; second, test whether the page of the link exists; and finally, ensure that there is no isolated page on the web application system, an isolated page means that no link is directed to the page. Only the correct URL address can be accessed.

2. form Test

When you submit information to the Web Application System Administrator, you need to use form operations, such as user registration, login, and information submission. In this case, we must test the integrity of the submitted operation to verify the correctness of the information submitted to the server. For example, whether the date of birth and occupation entered by the user are appropriate, and whether the province and city of the user are matched. If the default value is used, check whether the default value is correct. If the form can only accept specified values, the test is also required. For example, you can only accept certain characters. during testing, you can skip these characters to see if the system reports an error.

3. Cookies Test

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 sends information about the user, store the information in the form of cookies on the client computer, which can be used to create dynamic and custom pages or store login information.

If the web application system uses cookies, you must check whether cookies work properly. The test content may include whether cookies work, whether they are saved at a scheduled time, and whether refreshing affects cookies.

Session testing: the session function is similar to cookies, and the testing work is basically the same.

4. Design Language Testing

The differences in web design language versions can cause serious problems on the client or server side, such as the html version used. This issue is especially important when developers are not working together in a distributed environment. In addition to the HTML Version, different scripting languages, such as JavaScript, VBScript, and Perl, must also be verified.

5. Database Testing

In web application technology, Databases play an important role in providing space for the management, operation, query, and implementation of user requests for data storage of Web application systems. In Web applications, the most common database type is relational database. You can use SQL to process information.

In a web application system that uses databases, two types of errors may occur: data consistency errors and output errors. Data Consistency errors are mainly caused by incorrect form information submitted by the user, and output errors are mainly caused by network speed orProgramDesign issues, and so on, can be tested separately for these two cases.

Ii. Performance Testing

1. connection speed test

The speed at which users connect to the Web application system varies according to the changes in the way they access the Internet. They may be dialing or broadband access. When downloading a program, the user can wait for a long time, but this is not the case if only one page is accessed. If the response time of the web system is too long (for example, more than 5 seconds), the user will leave without patience.

In addition, some pages have time-out restrictions. If the response speed is too slow and the user may not have time to browse the content, they need to log on again. In addition, the connection speed is too slow, and data may be lost, so that users cannot obtain real pages.

2. Load Testing

Server Load balancer is used to measure the performance of a web system at a certain load level to ensure that the web system can work properly within the required range. The load level can be the number of users simultaneously accessing the web system at a certain time point, or the number of online data processing. For example, how many users can be online simultaneously in a web application system? If this number is exceeded, what will happen? Can a web application system process a large number of users' requests to the same page?

3. Stress Testing

The load test should be conducted in the actual network environment after the web system is released. Because there is always a limited number of internal employees, especially project team members, and the number of requests that a web system can process at the same time will far exceed this limit, so only on the Internet can accept load tests, the results are correct and credible.

Stress testing refers to the reflection of a testing system that actually destroys a web application system. Stress Testing tests System Restrictions and fault recovery capabilities, that is, to test whether the web application system will crash and under what circumstances. Hackers often provide wrong data load until the web application system crashes and then obtain access right when the system restarts.

The stress testing area includes forms, login pages, and other information transmission pages.

Iii. Availability Test

1. Navigation Test

The navigation describes how a user operates on a page, between different user interface controls, such as buttons, dialog boxes, lists, and windows, or between different connection pages. By considering the following questions, you can determine whether a web application system is easy to navigate: Is navigation intuitive? Is the main part of the web system accessible through the home page? Does the web system need site maps, search engines, or other navigation help?

Another important aspect of navigation is whether the Page Structure, navigation, menu, and connection style of the Web application system are consistent. Make sure that the user intuitively knows whether there is content in the Web application system and where the content is.

Once the level of the Web application system is determined, it is necessary to test the user navigation function, so that end users can participate in this test, the effect will be more obvious.

2. Graphic Testing

In the web application system, appropriate images and animations can serve both advertising and page beautification functions. A Web application system can contain images, animations, borders, colors, fonts, backgrounds, and buttons. The graphic test content includes:

(1) Make sure that the image has a clear purpose. Do not pile up images or Animations together to avoid wasting transmission time. The image size of a Web application system should be as small as possible, and a clear description of something should be given. Generally, all images are linked to a specific page.

(2) Verify that the font styles of all pages are consistent.

(3) the background color should be matched with the font color and foreground color.

(4) The image size and quality are also an important factor. jpg or GIF compression is generally used. Therefore, try to avoid using BMP or other formats.

3. content testing

Content testing is used to verify the correctness, accuracy, and relevance of information provided by the web application system.

Whether the information is correct indicates whether the information is reliable or mistakenly transmitted.

4. Overall Interface Test

The overall interface refers to the Page Structure Design of the entire web application system, which gives users a holistic sense. For example, do users feel comfortable when Browsing Web application systems? Do they intuitively know where the information they are looking for is? Is the design style of the entire web application system consistent? Of course, the overall test of the interface cannot be evaluated by personal intuition. The aesthetics, professional perspective, industry and users oriented to the system, and even gender and age of each person, these are all factors that may lead to different comments on the interface. Therefore, we need to understand that the entire interface testing process is actually a process of investigating the end user. Generally, the Web application system conducts a questionnaire on the homepage to obtain feedback from the end user.

For all usability tests, external personnel (not associated with Web application system development or few people in contact) are required, preferably end users.

Iv. Client compatibility test

1. Platform Testing

There are many different types of operating systems on the market. The most common types are windows, UNIX, Macintosh, and Linux. Which operating system is used by the end user of the Web application system depends on the configuration of the user system. In this way, compatibility issues may occur. The same application may run normally in some operating systems, but may fail to run in other operating systems.

Therefore, before the web system is released, you need to perform compatibility tests on the web system under various operating systems.

2. browser testing

Browser is the core component of the Web Client. browsers from different vendors have different support for Java, JavaScript, ActiveX, plug-ins or different HTML specifications. For example, ActiveX is a Microsoft product, designed for Internet Explorer, JavaScript is a Netscape Product, and Java is a sun product. In addition, the frameworks and hierarchies are displayed differently in different browsers, or even not at all. Different browsers have different security and Java settings.

One way to test browser compatibility is to create a compatibility matrix. In this matrix, the adaptability of browsers of different vendors and versions to some components and settings is tested.

V. Security Testing

The Security Test Areas of Web application systems are as follows:

(1) The current web application system is basically registered first and then logged on. Therefore, you must test valid and invalid user names and passwords. You must check whether the user name is case sensitive, how many times you can try, and whether you can directly browse a page without logging in.

(2) Whether the web application system has a timeout limit. That is to say, if a user does not click any page within a certain period of time (for example, 15 minutes) after logging on, the user must log on again to use the system normally.

(3) log files are crucial to ensure the security of web application systems. You need to test whether the information is written into the log file and traceable.

(4) When a secure socket is used, you must test whether the encryption is correct and check the information integrity.

(5) server scripts often constitute security vulnerabilities, which are often exploited by hackers. Therefore, you must test whether the script cannot be placed or edited on the server without authorization.

Vi. Summary

This article discusses Web-based system testing methods in terms of functions, performance, availability, client compatibility, and security.

Web-based system testing and traditional software testing have both similarities and differences, posing new challenges to software testing. Web-based system testing requires not only checking and verifying whether the system runs according to the design requirements, but also evaluating whether the system displays properly on different users' browsers. It is important to test security and availability from the end user's perspective.

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.