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

Tutorial-6 To Generate Equivalence Class Test Cases-For the Triangle Problem

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

Tutorial-6: To Generate Equivalence Class Test Cases-For the Triangle Problem

"The triangle program takes three integers, a, b and c as input. These are taken to be the sides of the triangle.

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

We can use these to identify output (range) equivalence classes as under:

01 = { : the triangle is equilateral}

02 = { : the triangle is isosceles}

03 = { : the triangle is scalene}

04 = { : sides a, b and c do not form a triangle}

Objective of this Tutorial: To apply the four techniques of equivalence class partitioning one by one & generate appropriate test cases?


color=#000080 size=2>

1) Weak Normal Equivalence Class: The four weak normal equivalence class test cases can be defined as under

Test Case ID

Side "a"

Side "b"

Side "c"

Expected Output

WN1

5

5

5

Equilateral Triangle

WN2

2

2

3

Isosceles Triangle

WN3

3

4

5

Scalene Triangle

WN4

4

1

2

Not a Triangle

2) Strong Normal Equivalence Class: Since no valid subintervals of variables a, b and c exist, so the strong normal equivalence class test cases are identical to the weak normal equivalence class test cases.

3) Weak Robust Equivalence Class: Considering the invalid values for a, b and c yields the following additional weak robust equivalence class test cases

Test Case ID

Side "a"

Side "b"

Side "c"

Expected Output

WR1

1

5

5

Invalid Value of a

WR2

5

-1

5

Invalid Value of b

WR3

5

5

-1

Invalid Value of c

WR4

201

5

5

Out of Range Value of a

WR5

5

201

5

Out of Range Value of a

WR6

5

5

201

Out of Range Value of a

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

Test Case ID

Side "a"

Side "b"

Side "c"

Expected Output

SR1

-1

5

5

Invalid Value of a

SR2

5

-1

5

Invalid Value of b

SR3

5

5

-1

Invalid Value of c

SR4

-1

-1

5

Invalid Value of a & b

SR5

5

-1

-1

Invalid Value of b & c

SR6

-1

5

-1

Invalid Value of a & c

SR7

-1

-1

-1

Invalid Value of a , b & c

It may be noted that the expected outputs describe the invalid input values thoroughly.

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