Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 6

SOFTWARE

TESTING
(ECP VS BVA
EXAMPLE)
Rizwan Khalid
OUTLINE
 ECP vs BVA Example
 Banking Problem

2
BANKING PROBLEM BY
USING ECP AND BVA
TECHNIQUES
A savings account in a bank has a different rate of interest depending on the

balance in the account. In order to test the software that calculates the interest
due, identify the ranges of balance values that earn the different rates of
interest. For example, 3% rate of interest is given if the balance in the account
is in the range of $0 to $100, 5% rate of interest is given if the balance in the
account is in the range of $100 to $1000, and 7% rate of interest is given if the
balance in the account is $1000 and above.
ECP Id Input Expected
output
Actual output

1 -5 NA
2 50 3%
3Id 150
Input 5%
Expected Actual status
<0 4 1050 output7% output
0 – 100 51 -1 -1 InvalidNA
100 – 1000
62 50 0 3% 3%
>1000
73 1501 5% 3%
84 1100
99 7% 3%
9 100 --
SO THE CONCLUSION
10 101 IS : IN CASE
5% OF REPETITION, YOU
HAVE TO DELETE THE DUPLICATIONS OF TEST CASES.
11 999 5%
12 1000 --
13 1001 7%
Id Input Expected Actual output
output

BVA 1
Id
2
-0.01
Input
0
Invalid
Expected
3%
output
Actual output

31 0.01
-0.01 3%
Invalid
42 99.99
0 3%
53 100
0.01 3% or 5%
64 100.01
99.99 5%
3%
<0 75 99.99
100 3% or 5%
0 – 100 86 100
100.01 3%
5% or 5%
100 – 1000 97 100.01 5%
999.99
>1000 10 999.99 5% or 7%
8 1000
11
9 1000
1000.01 5% or 7%
7%
12 1000.01 7%
13 999.99 5%
SO THE CONCLUSION IS : IN CASE OF REPETITION OF 3
14
POINTS 1000
(M-1, M, M+1), YOU HAVE 5% orTO
7%DELETE THE
15
DUPLICATIONS 1000.01
OF TEST CASES. 7%
THANK YOU

You might also like