Black Box – BVT software testing

Please Share This Article with Friends

Black Box – BVT software testing

This technique says that most errors occur at boundaries. For example, if we have a variable marks and the range of variable marks is from 1 to 100 then we can say that we should test them 100 times and one time for each value.

We will test that if marks are 1 then 1 is correctly entertained by our software or not?

We will test that if marks are 2 then 2  is correctly entertained by our software or not?

We will test that if marks are 3 then 3 is correctly entertained by our software or not? And so on for each value of marks.

Problem:

This is a very exhausting process and wastes a lot of time and budget if we test values of only one variable hundred times.

Solution:

 Solution to this problem is simple boundary value testing.

Simple Boundary value testing of one variable:

Boundary value testing says that errors mostly occur at boundaries, so we should only test the values at boundaries.

For example, we can test the values at 5 different points like

MinMin+NominalMax-Max

Here in case of marks, the range of marks is 1 to 100. So if we find these five values then;

MinMin+NominalMax-Max
125099100

Min:

Min is the minimum value of the data range.

Min+:

Min+  is the minimum value +1  among the data range.

Nominal:

Nominal value can be any typical value which is far away from boundaries. For example, here we chose 50 as nominal but we can also choose 51, 52, 53, 49, 48 or any value that is typical value and far away from boundaries. As we see that 50 have a very large distance between 1 and 2. Similarly, 50 have a very large distance against 99 and 100. So 50 can be nominal value.

Max-:

Max- is the Maximum value -1 among the data range.

Max:

Max is the maximum value of the data range.

Test cases:

We can generate 5 test cases from one variable marks as follows.

Test case # 1: To test 1

Test case # 2: To test 2

Test case # 3: To test 50

Test case # 4: To test 99

Test case # 5: To test 100.

 

Fazal Rehman Shamil
Welcome to all friends. The reason for our success is only your love for T4Tutorials. Our team is always available to answer your queries regarding any kind of confusions or discussion regarding your study and career matters. For discussion with us please join our facebook group "T4Tutorials.com". The link of the group is mentioned below. Thanks and love to all for connecting with us. We are nothing without you. Love you all.....
https://web.facebook.com/groups/2066136233601097/