Start trefwoorden te typen om de site te doorzoeken. Druk enter om te verzenden.
Generative AI
Cloud
Testing
Artificial intelligence
Security
The covering of equivalence classes is a powerful means of achieving a relatively high fault-detection rate with a limited set of test situations. Other terms used to refer to the design of test cases based on equivalence classes are “equivalence partitioning” and “domain testing”.
The principle is simple and is applied by most experienced testers automatically and intuitively.
his video explains this test design technique. Below the video more information and the explanation is available in text.
Please insert in this col ‘Sidebar Inserter‘ and select your sidebar(s).
Coverage groups:ProcessPathsRight paths / fault pathsState transitionConditionsDecision Table Test (DTT)Decision pointsModified Condition/Decision coverageSemantic TestElementary Comparison Test (ECT)DataEquivalence classesBoundary value analysisData Combination Test (DCoT)Orthogonal arrays and pairwise testingCRUDIntegrity rulesSyntactis Test (SYN)AppearanceAppearancePresentationStatistical usage: operational profiles and load profilesChecklist
Suppose that 3 test cases are being executed, with the following consecutive values for age: 16, 32 and 44. This is not a good choice, for several reasons:
In this example, for the parameter “Age” there are 3 equivalence classes, namely: 0 – 17, 18 – 55 and 56 – undefined.The various types of system behaviour in respect of this parameter are covered with 1 test case from each equivalence class.
The principle behind the application of equivalence classes is that each value taken from a class has the same chance of finding a fault and that testing with several values from the same class barely increases the chances of fault detection. It should be realised that this is an assumption. If, with a random value in an equivalence class the correct system behaviour occurs, it is in principle still possible for a fault to occur with another value. For example:
Even though the underlying principle is an assumption, it is a usable and useful one. By basing test cases on these equivalence classes instead of on every possible input value, the number of test cases is restricted, while a satisfactory coverage is obtained of the possible variations in the system behaviour.
Sometimes a distinction is made between valid and invalid equivalence classes: input values from the invalid equivalence class result in error messages. Input values from a valid equivalence class are processed as intended. This special form of coverage falls under the coverage of “Right paths / Fault paths“.
Equivalence partitioning is applicable to both input parameters and output parameters.