Test case design techniques: BVA and Equivalence partitioning

There are 6 test case design techniques/Black box testing techniques:

1. Equivalence Partitioning
2. Boundary Value Analysis
3. Decision tables
4. State Transition Diagram
5. Error Guessing
6. Use Case testing


Equivalence Partititioning and BVA

 Source: https://www.youtube.com/watch?v=uydAyjqTSiw&list=PLc3SzDYhhiGWuMK03uYO-UENAx0s2woWM&index=16

1. EQUIVALENCE PARTITION: 

- It is a test design technique 

- Divide input test data into partitions.

- Test each partition only ONCE (The assumption here is that any input within a partition is equivalent i.e. it produces the same output)


Example 1: Date field which accepts numbers between 1 and 31

The partition is as follows:

...,-3,-2,-1,0: Invalid partition

1 to 31: Valid partitition

32, 33, 34... : Invalid partition

Pick 1 value from each partition to test the partition.

Hence the field can be tested by entering values like -1,31,33.


Example 2: Username field that accepts 6 to 10 characters

0,1,2,3,4,5: Invalid partition

6 to 10: Valid partition

11,12,13,14: Invalid partition

Hence, the field can be tested by using one value from each partition like 5, 10, 11


Example 3: Age field that accepts values between 18 to 80 years EXCEPT 50 to 65 years.

The partition is as follows:

0 to 17: Invalid partition

18 to 49: Valid paritition

50 to 65: Invalid partition

55 to 80: Valid partition

81, 82, 83...: Invalid partition

The above field can be tested by choosing one value from each partition like 0,49,50,80,81


BOUNDARY VALUE ANALYSIS:

- Test case design technique related to Equivalence partitioning.

- Test Both sides of Each Boundary. i.e. Test Boundary value just below the boundary and  value just above the boundary. Each partition has 2 boundaries, the lower boundary and the upper boundary.


Example: Date field that accepts numbers between 1 to 31

Here 1 is Lower Boundary and 31 is upper boundary.

BVA says that you should test both sides of each boundary

Therefore, the value just below the boundary is 0 and just above the boundary is 32

So the field can be tested using following inputs: 0,1,31,32


Example 2: Username field that accepts username between 6 to 10 characters.

This field can be tested using following values: 5 chars,6 chars ,10 chars, 11chars


Example 3: Field that accepts Floating point values (0.2 to 0.8)

This field can be tested using following values: 0.1, 0.2, 0.8, 0.9

    












Comments

Popular posts from this blog

Jenkins CICD in One Page

Why do we need a build tool?

Deutsche Bank Interview Questions - 2024