Q13.Marks: +2.0UGC NET Paper 2: Computer Science 11 March 2023
For a function of two variables, boundary value analysis yields,
1.4n + 3 test cases
2.4n + 1 test cases✓ Correct
3.n + 4 test cases
4.2n + 4 test cases
Solution
The correct answer is 4n + 1 test cases
Key Points
In this case, we consider two boundary points (the lower and upper value) for each variable under test, equating to 2n test cases. Then, we add one more test case either to handle a unique scenario, resulting in a total of 4n + 1 test cases. This might typically represent a general "nominal" case, a middle value, or another specifically important case in the context of the specific application being tested.
The distribution of test cases being performed would be something like this:
For each variable, there would be 2 boundary test points (low value and high value), this will result in 2n test cases for the singular functional scenarios.
For a special or corner case, there's an additional 1 test case. The specifics of this case would depend on the function and use case under test consideration.
In total, this gives us (2n * 2) + 1 = 4n + 1 test cases.
This provides a comprehensive set of test cases covering both the boundaries of each individual variable as well as an additional special scenario.