- Home
- C#-UI-Automation-Tutorial
- QTP-UFT-Tutorial
- Selenium
- Algorithms-Tutorials
- Software Testing
- Agile
- Software-Metrics
- Software-Effort-Estimation
- PMP
- UnitTest-CppUnit-C++
- ALM-Quality-Center
- SQL-Database-Designing
- Contact-Us

- Cause-Effect-diagram
- State-Transition-Diagram
- Decision-Tables
- Equivalence-Partitioning
- Combinatorial-All-Pairs-Testing-Tutorial
- Pairwise-Orthogonal Array
- Boundary-Value-Analysis
- Test-Strategy
- V-Model
- Waterfall-Model
- Iterative-Model
- Cost-of-Quality-in-Software
- Verification-Validation
- Software-Validation
- Test-Review-methods
- Software-Inspection
- Top Down Integration Testing
- Stub-Driver

There are various methods and techniques available to ensure that a requirement is tested efficiently and at the same time correctly without missing any part.

**Equivalence partitioning** is one of such methods.

It is used to reduce the number of test cases and at the same time test all the possible areas.We shall explain this with the help of an example.

Say there are 5 students in a class, and their roll numbers are 1, 2,3,4,5 and the highest marks that can be given to a student is 10. So , students can get marks in the range of 0 ,1,2,3,4,5,6,7,8,9,10 . They cannot get less than 0 or greater than 10.To test this scenario for various combinations of Students and Marks, we need 55 tests (eleven tests ( one for each valid mark) for each student roll number and other tests for invalid scenarios). To reduce this considerable effort, we shall employ Equivalence portioning method.

Here, for marks, we can make three partitions. First partition is the valid range of 0-10 marks, one invalid partition of 0 marks and another invalid partition of 10 marks.Similarly, for students, we can make three partitions. First partition is the valid range of 1-5 roll number of students, one invalid partition of 1 roll number and another invalid partition of 5 roll number.We now plot these values in an excel format.

From the plot, we see that, there are three partitions for each category (marks roll number).We consider that any value that falls inside a partition can be considered equivalent to other values of that partition. So that partition can be called an equivalent class. In the example, for marks , any value from 0-10 will be within one equivalent class and any value >10 will be another equivalent class and so on.

So we basically need to test the 9 following combinations (Table 1) instead of the 50 tests using equivalent class method:

* by ARUP BASU*

- Test Design Techniques
- Cause and Effect diagram
- State Transition Diagram
- Decision Tables
- Equivalence Partition
- Pairwise & Orthogonal Array Testing Tutorial
- Boundary Value
- All Pairs and Combinatorial testing

**QTP-UFT-Tutorial**

QTP-Keyword-View

Spy Tool

QTP-UFT-Object-Repository

QTP / UFT Automation Framework

Part 1

Part 2

Part 3

Part4

Part 5

Part 6

Part 7

- Using CppUnit for C++ Unit Testing
**Metrics**

Requirement churn metrics

Estimation Churn metrics

Defects per KLOC

Cyclomatic Complexity of Code metrics

CCCC tool for calculating Cyclomatic ComplexityDefect removal efficiency (DRE) metrics

Fault Density metrics

Defect Density Metrics

Copyright QA Friend Software Testing. All rights reserved.