An OTP number which contains only six digits, less or more than six digits will not accepted and the application will redirect the user to the error page. Using Equivalence partitioning write valid and invalid test cases.

 

 Equivalence partitioning

An OTP number which contains only six digits, less or more than six digits will not accepted and the application will redirect the user to the error page. Using Equivalence partitioning write valid and invalid test cases.


Solution :-

 Equivalence Partitioning is a black-box testing technique where we divide 

input data into valid and invalid partitions to create effective test cases.

 

Partitions for OTP Validation

1.     Valid Partition: OTP with exactly 6 digits (100000 to 999999)

2.     Invalid Partitions:

o    Less than 6 digits (e.g., 0-99999)

o    More than 6 digits (e.g., 1000000+)

o    Non-numeric characters (e.g., "123a56", "12@456")

o    Empty input or null

 

Test Cases Using Equivalence Partitioning

A screenshot of a computer program

AI-generated content may be incorrect.