0
9.9kviews
A program reads an integer number within range [1, 100] and determines whether it is prime number or not. Design test cases for this program using BVC, robust testing and worst-case testing method.
1
1.3kviews

1) Test cases using Boundary value checking (BVC):

Since these is one variable, the total number of test cases will be 4n + 1 = 5

In this example, the set of minimum and maximum values is shown below:

Min value = 1

+

Min value = 2

Max value = 100

-

Max value = 99

Nominal value = 50 - 55

Using these values, test cases can be designed as shown below:

2) Test cases using robust testing:

Since there is one variable, the total number of test cases will be 6n + 1 = 7. The set of boundary values is shown below

Min value = 1

+

Min value = 2

Max value = 100

-

Max value = 99

Nominal value = 50 - 55

Using these values, test cases can be designed as shown below:

3) Test cases using worst - case testing:

Since there is one variable, the total number of test cases will be $5^n = 5$ Therefore, the number of test cases will be same as BVC