Website test technology brief (transfer) website test technology
Author: Ding Laiqing
Source: Beyond PHP
1 Overview
In a software project development, system testing is an important part of ensuring the quality of the overall project. This article will make a brief introduction to the website's test technology and the corresponding automated test tool. It is mainly to discuss the following aspects:
function test
Performance Testing
Security test
Stability test
Browser compatibility test
Availability / ease of use
Link test
Code legality test
2 test content
2.1 function test
In practical work, the function has its uncertainty in each system, and we cannot test the use of exhaustive methods, thus leading to functional testing, and we are based on 80/20 principles (ie 80% error) 20% of the system existing) uses two methods for the design of test cases
2.1.1 white box test
White box test uses the control structure of the program design to export test cases. Based on the current status we use the basic path test method for white box testing, this method is simple and efficient. The basic path test method is as follows:
¨ Firstly, the flowchart is exported through the system design.
¨ Calculate its ring complex according to data flow graph
V (g) = e-n 2
Or v (g) = p 1
V (g): Ring responsibility
E: Quantity of the flow map
N: Number of nodes in the flow map
P: Decide the number of nodes in the flow diagram
¨ We set v (g) path path
¨ We design the simulation data of the path path of the V (g)
¨ 进行 Corresponding test according to data
2.1.2 Black Box Test
The black box test is derived from the input condition of all functional requirements of the program, and exports the test case, the method of testing, and the black box test is used to assist the white box test.
We use an equivalent division method to test, that is, to divide the input domain of the program into a data class to export test cases. In general, the input conditions are: a specific value, a numerical domain, a set of associated values, or a Boolean condition.
2.1.3 Website Function Test
For the test of the website, each independent function module requires a separate test case design and export, mainly based on "Demand Analysis", for the application module to provide the designer's test cases for the basic path test method
OpenSTA (Open System Testing Architecture) can be used to automate test after test cases.
2.2 Performance Test
The performance test of the website is important for the operation of the website, but the current performance test of the website is not enough. We don't have a good reference when making system design, thus establishing a full range of performance testing of the website. The test plan will be critical.
The performance test of the website is mainly conducted from two aspects: load test (LOAD) and pressure test (stress), load test refers to testing some boundary data, and pressure test is more like malicious test, and the pressure test tendency should cause the entire system breakdown.
Performance testing can be automated with corresponding tools, we currently use the following tools
AB ----- Apache test tool
OpenSTA- Development System Test Architecture
2.3 Security Test
At present, network security issues are increasingly important, especially for websites with interactive information and the website of e-commerce activities. At present, our test does not cover the security of the security of the website, we plan to use tools to determine, the tools are as follows
SAINT ------- Security Administrator's Integrated Network Tool
This tool can measure the corresponding security issues of the website system and can give a safe vulnerability solution, just some of the more common vulnerabilities.
2.4 Stability Test
The stability test of the website refers to whether the entire system is operating in the system, there is no better test plan, mainly to test the test server for a long time operation.
2.5 Browser Compatibility Test
Through the test case exported by white box test or black box test, the corresponding tool is tested, and OpenSTA can be tested, and this test tool can be tested in different browsers. 2.6 availability / ease of use
We can only use manual testing methods to judge, and lack a good judgment benchmark. This side needs to discuss together.
2.7 link test
The hyperlink means that the website users can use the services that can be used throughout the website, so the link will be tested as a separate project. At present, we already have a test tool.
Xenu ------ The correctness of the main test link
It is a pity that some errors will appear for the test of the dynamically generated page.
2.8 Code Legality Test
Code legality test mainly includes 2 parts: program code legality check and display code legality check
¨ Program code legality check
The program code legality check The main criteria is "Interge Group Programming Specification", which is currently using the SCM administrator to specify the check, and future expectations can have corresponding tools to test.
¨ 显示 Display code legality check
Display the legality check of code, mainly divided into HTML, JavaScript, CSS code check, currently adopted
HTML code check ------ use CSE HTML Validator to test
JavaScript, CSS can also download the corresponding test tool on the Internet.
3 test tool
Opensta
Mainly perform the load and pressure test of performance testing, which is more convenient to use, can write test scripts, or you can automatically generate test scripts before, and then test the application test script.
Saint
Website security testing can provide security testing for the specified website and provide a solution to security issues.
CSE HTML Validator
A tool for legality checking for HTML code
AB (Apache Bench)
Apache comes with tools for performance testing, but also a lot of features, but very practical.
Crash-me
Mysql's own tools that test database performance can test performance of multiple databases.
The above tools can be found in the following directory except AB and CRASH-ME.
/ SMBServer / Apps / LinuxApp / Interge
AB and Crash-Me Please visit the appropriate information}
4 postscript
This article is only a simple introduction for the test of the website, and the tools are provided, but it can be guaranteed (of course, you can get free from the Internet), and there are many test tools that need Money, everyone Interested in trial, I just made a preliminary research on the above mentioned test tools, detailed functional descriptions Please check the relevant documentation.
There is also a part in the test of the website that is the test of the database. Some Money is required for the database performance test. Some Money thus use MySQL Crash-Me, but there is also a problem is for different databases. The test is better than the third party tool. Therefore, you can study for tools for other database performance tests.
5 Reference
(1) "Software Engineering - Practitioners' Research Method" ----- Roger S.Pressman
(2)
http://www.softwareqatest.com
(3)
http://www.soft.com/
(4)
http://www.qAforums.com
(5)
http://www.opensta.org