Four-stage software testing, unit testing, integration testing, system testing, acceptance testing

Objects software testing including software requirements, outline design, detailed design, software operating environment, you can run programs and software source code and so on. Software testing including quality, personnel, resources, technologies and processes of the five elements, as well as test coverage and test efficiency two goals.

Software testing is generally divided into four stages: unit testing, integration testing, system testing and acceptance testing.

A unit testing 
unit test software is the smallest unit to verify and validate checks. For example, testing of Java classes and methods.

Test principle: 
1, independently of one another as much as possible to ensure that test cases (test cases can not directly call the methods of other classes, the test should be rewritten in the simulation method); 
2, this stage is generally implemented by a software developer, with to verify the code developed features correspond to their design requirements.

The benefits of unit testing: 
1, early discovery of the defect; 
2, conducive to reconstruction; 
3, simplify integration; 
4, the document; 
5 for design.

Lack unit testing: 
1, to cover all possible execution paths, it is impossible to ensure that all errors are caught path; 
2, each line of code takes 3 to 5 lines for unit testing, the presence of the input and output balance.

Second, integration testing 
integration testing unit test is based on the summary of the software unit according to the software specifications of design specifications, whether each part of the work process are assembled into modules, subsystems or systems meet or achieve the corresponding technical specifications and requirements .

BigBang including integration testing, top-down, bottom-up, the core of the system integration, integration frequency.

Third, the system test 
will be tested for integration of software as part of a computer system, in conjunction with other parts of the system together, a series of strict and effective tests under actual operating environment to find potential software problems, to ensure the normal operation of the system .

Comparison between integration and system testing: 
1, the test: testing the integrated interface between the respective unit modules testing, system testing and functional testing of the overall system performance; 
2, test angle: angle of emphasis on integration testing technology testing, system testing is an emphasis on the perspective of the business to be tested.

Fourth, the acceptance test 
, also known as the delivery of test, is the official tests carried out for the needs of users, business processes to determine whether the system meets the acceptance criteria determined by the user, customer, or other authorized agency whether to accept the system.

Acceptance testing including testing alpha and beta testing, alpha testing is performed by testing software developer, beta testing by the user from the testing software development environment.

the difference:

A different test method

1, unit testing white box belongs to the category.

2, integration testing gray box testing category belongs.

3, black box testing category belongs to the system test.

Second, the range of different inspection

1, the internal data structure of the main unit of the test unit tests, logic control, exception handling.

2, the interface and its data between main test module integration testing transfer relationship and the overall function of the module assembly.

3, system testing, mainly to test the entire system with respect to the conformity requirements.

Third, the valuation of different

1, reference cell evaluation test is to logical coverage.

2, the valuation is primarily the interface integration testing coverage.

3, the valuation system test is to test the coverage of demand specifications.

Published 407 original articles · won praise 150 · views 380 000 +

Guess you like

Origin blog.csdn.net/ds1130071727/article/details/102807646