Boundary Value Analysis [BVA]
Boundary Value Analysis [BVA]is a testing technique which focuses on testing the boundary values of different input ranges. These boundary value areas are most prone to errors.
See below example for the BVA -
Consider a system that accepts examination passing marks between 40 to 100. Using BVA, we can design below test cases for the boundary values:
Below Minimum Boundary 39 - Test with a value just below the passing criterion. Result failed.
Boundary value for Passing 40 - Test with the minimum passing marks. Passing grade.
Just above boundary for minimum Passing 41- Test with a value just above the passing criterion. Passing grade.
Just Below First Class 59 - Test with a value just below the first class criterion 60. Non first class grade.
First Class 60 - Test with the minimum marks for first class. This confirms first class passing marks.
Just Above First Class 61 - Test with a value just above the first class marks.
Just Below Distinction 69 - Test with a value just below the distinction marks 70. This verifies that the the non-distinction passing grade.
Distinction 70 - Test with the minimum marks for a distinction. This confirms a distinction grade.
Just Above Distinction 71 - Test with a value just above the distinction marks.
Maximum Boundary 100 - Test with the maximum possible marks.
Decision Table Testing
Decision Table Testing is a testing technique used to identify different combinations of inputs and their respective outputs in a system with large number of possible combinations.
Example-
In above example we have four possible combinations of inputs. By using Decision Table Testing, it can be ensured that every combination is tested.
Use Case Testing
Use Case Testing focuses on validation of the user interactions. It covers various scenarios to ensure that the system works as expected when a specific use case is executed.
Example -File Upload functionality
Use Case: User uploads a file as attachment.
Input: File selection.
Output: Success or failure error message on file upload.
Test Scenarios as a part of Use case testing -
- Valid file upload with supported format.
- Invalid file upload with unsupported format.
- File upload which exceeds maximum size limit.
LCSAJ - Linear Code Sequence
'Linear Code Sequence and Jump testing' is a testing technique which ensures that every statement in a program is executed at least once. This technique helps to identify and test different paths through a programs control flows, loops and conditional branches.
Example - Loop Testing
Program in Python with for loop:
def exampleone(a):
for i in range(a):
print(f"Current value of i: {i}")
Path 1: a = 4
Output: "Current value of i: 0", "Current value of i: 1", "Current value of i: 2", "Current value of i: 3"
Path 2: a = 0
Output: Loop not executed

Top comments (0)