Test case design--Boundary value method

Source: Internet
Author: User

Reproduced

Boundary value analysis is also a black box test method, a supplement of the moderately equivalent class analysis method is learned from long-term test work experience that a large number of errors occur on the input or output boundary. Therefore, to design test cases for various boundary conditions, more errors can be detected.
such as: X>8, then the boundary value can be {8,9}, or {7,8,9}
If the program is written in X>=8, 8 can be measured to
If the program is written in X<8, it can be measured by 7,9.
If the program is written in X<>8, it can be measured by 7.

principles for selecting test Cases
First, if the input condition specifies the range of values, then the boundary value that has just reached this range should be taken, and the value just above the bounds of the range as the test input number.
such as: an input file should include 1~255 records, the test case should be 1 and 255, should also take 0, 2 and 254, 256, etc.;
Three, according to the specification of each output condition, the use of rule I.
Four, according to the specification of each output condition, the use of rule two.

If the program specification indicates that the input field or output field is an ordered set (such as ordered table, sequential file, etc.), then the first and last element of the collection should be selected as the test case;
Steps for boundary value analysis
Boundary value analysis uses the same division as the equivalence class partitioning method, except that the boundary value analysis assumes that the error is more on the dividing boundary, so the test case is designed on the boundary of the equivalence class and on both sides of the case;
1. Divide the input or output parameters of the software into equivalent classes;
2. Boundary value analysis is performed on the basis of equivalence class. In general, if the boundary value is already covered by the equivalence class, it can not be considered;
3. Combining the boundary values as input data for the test case;

Integrated practice of equivalence class + boundary value

Test case design--Boundary value method

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.