The Website Test Technology
1 outlines
In one software item development, the system test will be the guarantee overall item quality important one link, this article does one brief introduction on the website test technology and the corresponding test automation tool. Mainly carries on the discussion on the following several aspects:
The function tests
The performance tests
The security tests
The stability tests
The browser compatibility tests
The usability / usability tests
The link tests
The code validity tests
2 tests contents
2.1 functions test
In the practical work, the function has it determinism in each system, but we are not possible to use the exhaustion the method carry on the test, thus caused the function test to be more difficult, we rested on 80/20 principle (namely 80% wrong existence to system 20% part) regarding measure the test example the design used the following two methods
2.1.1 white boxes test
The white box test is the use programming control structure derives measures the test example. We use the basic way test method based on the present present situation carry on the white box test, this method simple is highly effective. Basic way test method simple explanation as follows:
¨ first derives the data stream chart through the system design flow chart
¨ calculates its ring-like complexity based on the data stream chart
V (G) =E-N+2
Or V (G) =P+1
V (G): Ring-like be responsible for
E: Flows in the chart the side quantity
N: Flows in the chart the pitch point quantity
P: Flows in the chart determines the pitch point the quantity
¨ we establish V (G) the strip way
¨ we design V (G) the strip way analog data
¨ carries on the corresponding test according to the data
2.1.2 black boxes test
The black box test namely derives the executive routine all functions demand the input condition, thus derives measures the test example, carries on the test the method, the black box test uses in to assist the white box test.
We use the equal in value division the method carry on the test, namely for procedure input territory division for data class, in order to derives measures the test example. Under the common situation inputs the condition is: One specific value, one value territory, one group of correlative values or one Boolean condition.
2.1.3 websites functions test
Says regarding the website test, each independent function module independent needs to measure the test example the design derives, the main basis is " demand analysis ", needs the designer regarding the application program module provides the basic way measures the test measures the test example
Has after measures the test example may use OpencSta (Open System Testing Architecture) carries on the automation tests
2.2 performance test
The website performance test says regarding the website movement , but at present insufficient which does regarding the website performance test, we in carry on when the system design also does not have one very good datum to be allowed to refer, thus will establish the website the performance test one entire set of test plan is very important.
The website performance test mainly carries on from two aspects: The load test (Load) and the pressure test (Stress), the load test refers is carries on some boundary data the test, the pressure test picture is the malicious test, the pressure test tendency should be causes the entire system collapse.
The performance test may use the corresponding tool carries on the automated test, we at present use the following tool
ab -----Apache testing tool
OpencSta - development system test overhead construction
2.3 securities test
At present the network security question day by day is important, specially regarding has the interactive information the website and carries on the electronic commerce activity the website is especially important. At present our test has not contained covers the website the secure test, we draw up use the tool determine, the tool is as follows
SAINT------- Security Administrator's Integrated Network Tool
This tool can determine the website system the corresponding security problem, and can produce the security loophole the solution, but is some more common loophole solution.
2.4 stability test
The website stability test is refers the website in the movement the entire system whether does move normally, at present the not even better test plan, mainly will use tests the server long time revolution carries on the test.
2.5 browsers compatibility test
Derives through the white box test or the black box test measures the test example, uses the corresponding tool carries on the test, may use OpencSta carries on the test, this testing tool may use the different browser carries on the test.
2.6 usability / usabilities test
The usability / usability aspect at present we only can use the manual test the method carry on the judgment, moreover lacks one very good judgment datum carries on, this on the one hand needs everybody together discusses.
2.7 links test
The super link says regarding the website user means can the smooth use entire website provide service, thus will link takes one independent item will carry on the test. At present we already had one testing tool
Xenu------ main test link accurate tool
Is a pity is can appear some mistakes regarding the dynamic production page test.
2.8 codes validity test
The code validity test mainly includes 2 parts: The procedure code validity inspection and the demonstration code validity inspects
¨ the procedure code validity inspects
The procedure code validity inspection main standard is " the intergrp group programs standard ", at present uses by the SCM manager carries on the standard the inspection, future will expect will be able to have the corresponding tool carries on the test.
¨ the demonstration code validity inspects
Demonstrates code valid inspection, mainly divides into Html, JavaScript, Css code inspection, at present uses
The HTML code inspection ------ uses CSE HTML Validator carries on tests
JavaScript, Css also may on-line download the corresponding testing tool.3 testing tools
OpencSta
Mainly makes the performance test the load and the pressure test, the use is quite convenient, may compile the test script, also may the advance automatic production test script, but after regarding carries on the test using the test script.
SAINTThe website security test, can regarding assign the website to carry on the secure test, and may provide the security problem the solution.
CSE HTML Validator
One is useful carries on the valid inspection regarding the HTML code the tool
Ab (Apache Bench)
Apache brings own regarding the performance test aspect tool, the function is not very many, but is extremely practical.
Crash-me
Mysql brings own the test database performance tool, can test the many kinds of database the performance.
The above tool all may look for besides Ab and Crash-me in the below table of contents obtains
\smbserver\apps\linuxapp\intergrp
ab and Crash-me please observes the corresponding material to the corresponding website in }
After 4 record
This Wen Zhi was does one simple introduction regarding the website test aspect, provided the tool were quite few, but was allowed to guarantee could use (certainly all is may from be on-line free obtains), moreover also had the very many testing tools is needs Money, everybody had the interest may test, regarding the testing tool which above mentioned I also only am do one preliminary investigation and study, the detailed function showed please observed the correlation the explanation documents.
Is quite important regarding in the website test also has one part is regarding the database test, because tests a better tool regarding the database performance needs some Money thus we use Mysql Crash-me, but simultaneously also has one problem is uses the third party regarding the different database test the tool is better. Thus everybody may conduct the research regarding other database performance tests tools.
5 references
(1)" software engineering - practice research technique " -----Roger S.Pressman
(2) http://www.softwareqatest.com
(3) http://www.soft.com/
(4) http://www.qaforums.com
(5) http://www.opensta.org

