How to ensure the coverage of the test

Source: Internet
Author: User

How to ensure the coverage of the test

First, the test needs analysis should be comprehensive.

The test requirements analysis is divided into two steps:

1. Acquisition of test requirements

Sources of demand:

Explicit requirements:

(1) Original requirement specification

(2) Product specification sheet

(3) Software requirements documentation

(4) Documents with or without inheritance

(5) Experience Library

(6) General Protocol specification

Implicit demand: The user's subjective feelings, the mainstream view of the market, the evaluation of professionals
2, analysis of requirements, production of test requirements documentation

The different sources of demand are divided into demand points for testing and analysis for each point:

(1) Define the scope of the test

(2) Test points are generated using a variety of test design methods

In terms of testing methods, the following notes can be made:

First, analysis of export access. From the analysis of the entrance, the possible environment, conditions, operations and other content classification combinations, and then according to the test method for the integration of the people, each verification. From the export analysis, the possible results are counted, according to the results of the different origins, and then find different operations and conditions and other content, statistics into documents, each verification.

Second, a variety of test methods of learning and use. People may be more concerned about the test method, but the specific operation of the technique also needs to be noted. After all, the test method is easier to find, you are very familiar with people. If you summarize each person's different testing techniques and use them in your own test implementation, you may receive unexpected results.

In the testing process, the following notes can be made:

First, need to do a good job in the early analysis. Gradually refine the requirements to small function points and test the design for each function point. For the completed test design documents, after the project related personnel inspection review, to make the required first draft.

Second, in the test process, according to requirements change and specific test execution process encountered problems to improve the test design documents.

Third, after the test execution, to summarize the problems that arise. It contains the problems that are found in itself, as well as questions that customers may ask. The results are integrated into the test design to further improve the test design documentation.

For a single test, it is impossible to have a comprehensive coverage test. Need to sum up a lot of accumulation, will make the test more and more comprehensive.

In the field of test flow thinking, the following notes can be made:

First, testing is not equal to comprehensive testing. Different stages have different requirements for software testing, for example, before the 0.8 release, there is no need to care about unimportant picture problems or small functional problems. But in the acceptance phase, these things may be more important to note.

Second, learning, only constantly to learn constantly to think, to make their own ability to test more powerful, test subjects of comprehensiveness is more complete.

Second, when the test requirement analysis is completed, and the document is formed, test requirements review to ensure the accuracy and completeness of the requirements.

After the test requirements are completed, test cases can be designed according to the test requirements.

To ensure that the test case can fully cover the test requirements, include all the circumstances.

Test case design is divided into single-function test cases and test scenario design, single-function testing covers the requirements of the functional points, test scenarios to cover the requirements of business logic.

When designing test cases, you can use a variety of test case design methods.

First, the equivalence class is divided, including the equivalence class partition of the input condition and the output condition, the valid equivalence class and the invalid equivalence class are set rationally, which is the most effective method to reduce the workload and improve the test efficiency.

Boundary value analysis must be used, and experience has shown that the use cases designed by this method can find many program errors.

You can use the error-guessing method to append some test cases, depending on your intelligence and experience.

Check the logical coverage of the designed test case against the program logic, and add enough test cases if the coverage criteria are not met.

If the function description of the program contains the combination of input conditions, the causal diagram and the decision table-driven method can be selected from the outset.

For the software of parameter configuration class, the orthogonal test method is used to select less combination to achieve the best result.

For a system with clear business flow, the scenario method can be used throughout the entire test plan process to comprehensively use various test methods in the case.

When the test case design is completed, to organize the review of test cases, so that you can draw other people's opinions, reduce omissions, complete test trial examples.

After the test case is written, it is the test execution,

Test case execution 100% overrides.

During test execution, continue to complement the test cases to ensure that test coverage is increased.

Five, throughout the testing process, the requirements are not immutable, so to update the test requirements, test cases in a timely manner.

Vi. correlate test requirements, test cases, and bugs found for easy management and tracking, while also making it easy to see coverage.

How to ensure the coverage of the test

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.