İstanbul evden eve nakliyat Beylikd¨¹z¨¹ evden eve nakliyat Tuzla evden eve nakliyat
Tutorial-2 To Generate BVA Test Cases-For the Triangle Problem
Delicious Bookmark this on Delicious
software testing genius

Tutorial-2 To Generate BVA Test Cases-For the Triangle Problem

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

Tutorial-2: To Generate BVA Test Cases-For the Triangle Problem

Before we generate the test cases, firstly we need to define the problem domain as described below.

Problem Domain: "The triangle program accepts three integers, a, b and c as input. These are taken to be the sides of a triangle. The integers a, b and c must satisfy the following conditions

C1: 1 ≤ a ≤ 200

C2: 1 ≤ b ≤ 200

C3: 1 ≤ c ≤ 200

C4: a < b+c

C5: b < a+c

C6: c < a+b

The output of the program may be either of: Equilateral Triangle, Isosceles Triangle, Scalene or "Not a Traingle".

 

Objective of this Tutorial: How to Generate BVA Test Cases for this problem?

We know that our range is [1, 200] where 1 is the lower bound and 200 being the upper bound.

Also, we find that this program has three inputs like a, b and c.

Hence for our

case number of inputs or 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.

Now we can draw the following Table indicating all the 13 test-cases.

Test Case ID

Side "a"

Side "b"

Side "c"

Expected Output

1

100

100

1

Isosceles Triangle

2

100

100

2

Isosceles Triangle

3

100

100

100

Equilateral Triangle

4

100

100

199

Isosceles Triangle

5

100

100

200

Not a Triangle

6

100

1

100

Isosceles Triangle

7

100

2

100

Isosceles Triangle

8

100

100

100

Equilateral Triangle

9

100

199

100

Isosceles Triangle

10

100

200

100

Not a Triangle

11

1

100

100

Isosceles Triangle

12

2

100

100

Isosceles Triangle

13

100

100

100

Equilateral Triangle

14

199

100

100

Isosceles Triangle

15

200

100

100

Not a Triangle


It may be noted that as explained above that we can have 13 test cases (4n + 1) for this problem. But instead of 13, now we have 15 test cases.

Moreover we can see that the test cases vide ID number 8 and 13 are redundant. Hence we can ignore them. However, we do not ignore test case ID number 3, as we must consider at least one test case out of these three. Thus it is evident that it is a mechanical activity.

Hence we can say that these 13 test cases are sufficient to test this program using BVA technique.


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