New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

# Boundary Value Analysis (BVA)

In the video, Julian takes a deeper look into boundary value analysis, which focuses on testing values at the boundaries of input domains.

In the video, Julian takes a deeper look into boundary value analysis, or BVA, a test design technique that focuses on testing values at the boundaries of input domains.

Now that we have a better understanding of boundary value analysis, it’s time for you to try it out yourself.

In this task, you’re provided with the same software specification that you used for equivalence partitioning in the previous example. Your task this time is to create a test case using boundary value analysis. This will give you hands-on experience with BVA and help you understand its importance in the software testing process.

As you work on this task, think about the benefits and challenges of using BVA compared to equivalence partitioning. Consider how these two techniques complement each other in the software testing process and how they can be used together to create a more comprehensive test suite. If you’re unsure, just go through the previous video presentation again.

Remember, practice is key when it comes to mastering test design techniques. The more you practise, the better you will become at identifying the appropriate technique for a given testing scenario and creating effective test cases. Good luck with the task, and happy testing.

Here’s the pseudocode again for the cinema ticket task:

function calculate_ticket_price(age)

if age >= 0 and age <= 12:

apply 50% discount

elif age >= 13 and age <= 17:

apply 25% discount

elif age >= 18 and age <= 64:

apply 0% discount (full price)

elif age >= 65:

apply 30% discount

else:

return "Invalid age input"

end if

return ticket_price

end function

Here’s the first few BVA tests to get you started:

1. Age input: 0 (Minimum) Expected output: 50% discount (child)
2. Age input: 12 (Upper boundary for children) Expected output: 50% discount (child)
3. Age input: 13 (Lower boundary for teenagers) Expected output: 25% discount (teenager)
4. Age input: 17 (Upper boundary for teenagers) Expected output: 25% discount (teenager)

## Create

Please choose another age input and create a BVA test, and share this with your fellow learners. Feel free to comment on each other’s work.