Tutorial-4 To Generate BVA Test Cases-For the Salesman Commision Calculation Program
|
|
|
Welcome
to “Software Testing Genius”.
Subscribe to my
RSS feed for
latest content on Software
Testing. |
|
|
Tutorial-4: To Generate BVA Test Cases-For the Salesman Commision Calculation Program
Before we generate the test cases for the sales commission calculation program, firstly we need to define the problem domain as described below.
Problem Domain: "A desert cooler sales person sold cooler fans, pumps and bodies that were made by a cooler maker. Fans cost $45, pumps cost $30 and bodies cost $25.
The salesperson had to sell at least one complete cooler per month, and the production limits were such that the most the sales person could sell in a month was 70 fans, 80 pumps and 90 bodies. The sales person used to send the details of sold items to the cooler maker. The cooler maker then computed the sales person's commission as follows:
1) 10% on sales upto and including $1000.
2) 15% of the next $800.
3) And 20% on any sales in excess of $1800.
|
face="arial, helvetica, sans-serif">The commission program produced a monthly sales report that gave the total number of fans, pumps and bodies sold, the sales person's total dollar sales and finally, the commission."
Objective of this Tutorial: How to Generate BVA Test Cases for this problem?
Here we have three inputs for the program, hence n = 3.
Since BVA yields (4n + 1) test cases according to single fault assumption theory, hence we can say that the total number of test cases will be (4*3+1)=12+1=13.
The boundary value test cases are
We can see that the monthly sales are limited by the following consideration:
1 ≤ fans ≤ 70
1 ≤ pumps ≤ 80
1 ≤ bodies ≤ 90
Test Case ID |
Fans |
Pumps |
Bodies |
Expected Output of Sales |
1 |
35 |
40 |
1 |
2800 |
2 |
35 |
40 |
2 |
2825 |
3 |
35 |
40 |
45 |
3900 |
4 |
35 |
40 |
89 |
5000 |
5 |
35 |
40 |
90 |
5025 |
6 |
35 |
1 |
45 |
2730 |
7 |
35 |
2 |
45 |
2760 |
8 |
35 |
40 |
45 |
3900 |
9 |
35 |
79 |
45 |
5070 |
10 |
35 |
80 |
45 |
5100 |
11 |
1 |
40 |
45 |
2370 |
12 |
2 |
40 |
45 |
2415 |
13 |
35 |
40 |
45 |
3900 |
14 |
69 |
40 |
45 |
5430 |
15 |
70 |
40 |
45 |
5475 |
Here we can see that out of 15 test cases, two are redundent. Hence 13 test cases are sufficient to test this program.
Many More Articles & Tutorials on Black Box Testing
|
|
Largest Database of Sample Papers - 1000+ Unique Questions for ISTQB Foundation Exam
ISTQB Foundation Exam - Full Crash Course for Download
ISTQB Advanced CTAL Test Analysts Exam - Full Crash Course for Download
ISTQB Advanced CTAL Test Manager Exam - Full Crash Course for Download
What Successful Testers say about the Quality of this website
If you want to keep track of further articles on Software Testing, I suggest you to subscribe my RSS feed .
You can also Subscribe by E-mail and get All New articles delivered directly to your Inbox. |
Get your Absolutely Free Copy of Several MS PowerPoint Presentations & E-Books related to ISTQB, HP Load Runner, IBM RFT, HP QTP & QC Certification Exams, prepared by Popular Writers & Trainers, by writing to: Software.testing.genius@gmail.com
Full Study Material for Popular Certification Exams:
Study Material - HP QTP & QC Certification Exam
Study Material - IBM RFT Certification Exam
Study Material - HP LoadRunner Certification Exams for All Modules
Study Material - ISTQB Certification Exam
Most Popular Topics in Demand:
Practical Roadmap to QTP Certification
Practical Roadmap to CSTE Certification
Consolidated Study Material - Testing & QA
Rehearsal of QTP in 1 Hr. - Interview Questions
|
|
Comments :
# 1 Bison on 2011-12-29 13:50:22
Leave Your Comments: (*) Marked Fields are Mandatory
You can apply basic formatting to the text