Which will be best method to evaluate credit card number? Boundary value analysis and Equivalence partitioning? condition credit card number will be 16 digits in length
Which will be best method to evaluate credit card number? Boundary value analysis and Equivalence partitioning? condition credit card number will be 16 digits in length
Hi pradheep
I would suggest a combination of both Boundary value analysis as well as Equivalence Class partitioning. Reason -
Using BV Analysis, you can confim that the specified Credit Card Length is matched. Try with Boundary condtions of 15,17.
Equivalence Partitioning would be required to create subsets of data like -
Numeric, AlphaNumeric, Alphabetic and Special Characters.
This would enable us to validate that a Credit Card number is Numeric only.
Cheers.....
Bizzzzzare
Both the Boundary Value Analysis and Equivalence partitioning should be done for validating the length of the credit number. Using BAV we can the length of the digit on the boundary and by equivalence partitioning we can divide the card number into subsets and validate.
Boundary value determines the length of the digits while equivalence partitioning will partition the digits into equally numbered groups for validation.