Design ideas of test cases

Source: Internet
Author: User

In the pair project, I am responsible for testing the design and execution of the force. In the process of designing test cases, I used the following ideas.

Characteristics of good test cases:

The best way to identify software-hidden flaws
Software defects can be identified with maximum efficiency
Maximum test coverage requirements can be met
Neither too complicated nor too simple
The performance of software defects can be clearly judged
The test case contains the correct results that are expected
Unknown origin output or file must be as simple and straightforward as possible
Does not contain duplicate test cases
The test cases are clear, consistent in format, organized in categories

Several design ideas for test cases:

For white-Box testing:

1. Statement overlay: Design Several test cases to enable each executable statement in the program to
Less execution once

2. Branch coverage: Design a number of test cases, so that each judgment in the program at least
Take true branches and false branches once, that is, the true and false values of judgment have been satisfied

3. Conditional override: Design Several test cases so that each condition in each judgment can be
Can be evaluated at least once

4. Branching, conditional overrides: Both branch coverage and conditional coverage are met

The above cover way in addition to 4 each has the characteristic, cannot say who because of who, need according to the actual situation to choose.

For black-Box testing:

Functional coverage: The most common is the need to cover, the meaning is through the design of a certain measurement
A trial example that requires each requirement point to be tested to

Here I use the black box test design ideas. The specific test implementation will be summarized in the next essay.

Design ideas of test cases

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.