One: The purpose and principle of software testing
Software testing is to find the wrong, with as few tests as possible to find as many errors as possible.
Principles: 1, early, 2, from small to large, 3, test plans, 4, to envisage errors in the program, 5, the test does not prove that the software is error-free; 6, should be tested by a third party
Second: Testing process
1, Unit test
Unit tests are tested when the module code is complete. Test method: White box test
2, Integration test
Integration tests are tested in combination with the requirements for testing and system design instructions after module assembly. Test method: Black box test
3, confirm the test
Verify that the test check system requirements and customer requirements are consistent. First, the validity test (using the simulation data running system), then the acceptance test (using real data) and installation test
4, System test
System testing is a combination of hardware and software and network factors to carry out a variety of assembly testing and validation testing, the purpose is to identify with the user needs of the ground
Three: Test method 1, black box test main test program function, mainly in the program interface to test. Technology: Equivalence class division, boundary value analysis, error guessing, causality diagram 2, white box test Check Program each path meets the requirements.
Technology: Statement Overlay, decision coverage, conditional override, conditional override, conditional combination override, Path overlay six Tests, although starting point and name are different, but are all to test the path of the program. Different starting points, the method is different. This part of the study mainly distinguishes how these methods are separated from the starting point. The first thing you need to know is "statement", "condition", "path", as shown below:
There are two routes: l1=1-2-3; and l2=1-4-5.
1, the statement overlay overwrites the path of statement 1 and statement 2 in the diagram above. That is, the L1 and L2 paths are covered.
2, the decision overlay above is a judgment, that is (A>1 and b>1) of the true branch and false branches are executed. Contains statement overrides.
3, the condition is covered above, the condition (a>1 b>1) two conditions, according to the condition design test.
4, the path is covered as above, the path of L1 and L2 can be traversed.
Summary: No matter what kind of test, it is the path to go.