I have a simple question, but it is still unanswered.
For example, I want to test a register feature, where the user must enter their name, email, and password.
The possible inputs are like this:
- input name: valid (more than 2 characters), invalid, empty
- input email: valid (contains "@"), invalid, empty
- input password: valid (more than 8 characters), invalid, empty
How do I make a testcase so that the number of testcases can be as low as possible with the maximum quality of testing possible?
If I make all the testcases, the result will be like this:
- valid name, valid email, valid password
- valid name, valid email, invalid password
- valid name, valid email, password empty
- valid name, invalid email, valid password
- valid name, invalid email, invalid password
- name valid, email invalid, password empty
- name empty, email empty, password empty
If I make a testcase of all the possibilities, the total testcase is 3 * 3 * 3 = 27
Imagine if I tested a form with 10 types of input. Of course, the number of testcases produced can be tens of thousands.
What exactly is the correct way to make a testcase?
I saw on the internet, there is a technique called pairwise testing. But when I try to generate a testcase with pairwase testing using the following site:
The results are not the same (the number of testcases varies) between sites. So I am quite confused, what is the correct pairwise testing formula?
Then is there another technique that is better?