Software testing Method-equivalence class partitioning method

Source: Internet
Author: User

Equivalence class Partitioning method

Equivalence class partitioning is a frequently used method in test work, each step of the testing work is closely related to it, in-depth understanding of this method, and flexible use is the basis of software testing work

The equivalence class partitioning method divides all possible input data, that is, the input field of a program into several parts (subsets), and then selects a small number of representative data from each subset as a test case

An equivalence class is a subset box of an input field. In this sub-collection, each input data is equivalent to the error in the disclosure program, and it is reasonable to assume that the test of the representative value of an equivalence class is equal to that of the other values in this category.

There are two different cases of equivalence class partitioning: Valid equivalence class and invalid equivalence class. Consider both of these equivalence classes at design time

The principle of the equivalence class design test case is that the test case should cover the two parts of the valid equivalence class and the invalid equivalence class.

For example:

Software requirements require that when the total amount of shopping cart purchases is in [200,300], the products in the shopping cart enjoy a 90 percent discount.

Then, the valid equivalence class in this example is [200,300], and the invalid equivalence class is [-∞,200] and [300,+∞].

Software testing Method-equivalence class partitioning method

Related Article

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.