İstanbul evden eve nakliyat Beylikd¨¹z¨¹ evden eve nakliyat Tuzla evden eve nakliyat
Tutorial-8 To Generate Equivalence Class Test Cases-For the Salesman Commission Calculation Program
Delicious Bookmark this on Delicious
software testing genius

Tutorial-8 To Generate Equivalence Class Test Cases-For the Salesman Commission Calculation Program

Welcome to “Software Testing Genius”. Subscribe to my RSS feed for latest content on Software Testing.

Tutorial-8: To Generate Equivalence Class Test Cases-For the Salesman Commission Calculation Program

"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.

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:

size=2> To apply the four techniques of equivalence class partitioning one by one & generate appropriate test cases?

The valid classes of the input variables are as follows

F1 = {fans: 1 ≤ fans ≤ 70}
F2 = {fans = -1}
P1 = {pumps : 1 ≤ pumps ≤ 80}
B1 = {bodies : 1 ≤ bodies ≤ 90}

The corresponding invalid classes of the input variables are as follows:

F3 = {fans : fans = 0 or fans < -1}
F4 = {fans : fans > 70}
P2 = {pumps : pumps < 1}
P3 = {pumps :pumps > 80}
B2 = {bodies : bodies < 1}
B3 = {bodies : bodies > 90}

1) & 2) Weak Normal & Strong Normal Equivalence Class: Since the number of valid classes is equal to the number of independent variables, so we have exactly one weak normal equivalence class test case and again, it is identical to the strong normal equivalence class test case.

Test Case ID

Fans

Pumps

Bodies

Expected Output for sales

WN1, SN1

35

40

45

3900

3) Weak Robust Equivalence Class: Test Cases falling under this category are as under

Test Case ID

Fans

Pumps

Bodies

Expected Output for sales

WR1

35

40

45

3900

WR2

0

40

45

Invalid Input

WR3

71

40

45

Invalid Input

WR4

35

0

45

Invalid Input

WR5

35

81

45

Invalid Input

WR6

35

40

0

Invalid Input

WR7

35

40

91

Invalid Input

4) Strong Robust Equivalence Class: Test Cases falling under this category are


Test Case ID

Fans

Pumps

Bodies

Expected Output for sales

SR1

-1

40

45

Value of Fans not in range 1 - 70

SR2

35

-1

45

Value of Pumps not in range 1 - 80

SR3

35

40

-1

Value of Bodies not in range 1 - 90

SR4

-1

-1

45

Value of Fans & Pumps are not in their ranges

SR5

-1

40

-1

Value of Fans & Bodies are not in their ranges

SR6

35

-1

-1

Value of Pumps & Bodies are not in their ranges

SR7

-1

-1

-1

Value of Fans, Pumps & Bodies are not in their ranges


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 :

comments ↓


Leave Your Comments: (*) Marked Fields are Mandatory

You can apply basic formatting to the text

Name *
 
Email Address *
 
Website
 
Speak your mind
characters
sex hikayeleri