0% found this document useful (0 votes)
2K views6 pages

A Program Reads Three Numbers A, B, C With Range (1,50) and Print The Largest Number - Design Test Cases For This Program Using Equivalence Class Testing Techniques

The document describes a program that reads and compares three integer values between 1 and 50 to find and print the largest number. It asks to design test cases for this program using equivalence class testing techniques.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views6 pages

A Program Reads Three Numbers A, B, C With Range (1,50) and Print The Largest Number - Design Test Cases For This Program Using Equivalence Class Testing Techniques

The document describes a program that reads and compares three integer values between 1 and 50 to find and print the largest number. It asks to design test cases for this program using equivalence class testing techniques.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

11/18/21, 4:34 PM A program reads three numbers A,B,C with range[1,50] and print the largest number.

he largest number.Design test cases for this program using equivalence class testing techniques.

(/)

(/local/search/page/) Login (/site/login/?next=/p/19395/a-program-reads-three-numbers-abc-with-range150--1/)

A program reads three numbers A,B,C with range[1,50] and print the largest
♦ 130 ♦ 580
number.Design test cases for this program using equivalence class testing techniques.

written 4.7 years ago by modified 2.2 years ago by

software testing and quality assurance (/t/software testing and quality assurance/)
1 Answer
0
9.6k
views
https://www.ques10.com/p/19395/a-program-reads-three-numbers-abc-with-range150--1/ 1/6
11/18/21, 4:34 PM A program reads three numbers A,B,C with range[1,50] and print the largest number.Design test cases for this program using equivalence class testing techniques.

ADD COMMENT FOLLOW SHARE EDIT (/p/edit/19395/)

written 2.6 years ago by modified 2.6 years ago by


♣ 9.6k ★ 3.1k

1
First we partition the domain of input as valid input values and invalid values. so we get following classes -
714
views I1 = { <A,B,C> : 1 ≤ A ≤ 50

} I2 = { <A,B,C> : 1 ≤ B ≤

50} I3 = { <A,B,C> : 1 ≤ C ≤

50} I4 = { <A,B,C> : A < 1}

I5 = { <A,B,C> : A > 50}

I6 = { <A,B,C> : B < 1}

I7 = { <A,B,C> : B > 50}

I8 = { <A,B,C> : C < 1 }

I9 = { <A,B,C> : C > 50}

Now test cases can be designed from the above derived classes taking one case from each class such that the test case covers maximum
valid input classes and seperate test cases for each invalid class.

Test case id A B C Expected Result Classes covered test cases

https://www.ques10.com/p/19395/a-program-reads-three-numbers-abc-with-range150--1/ 2/6
Test case id A B C Expected Result Classes covered test cases

1 13 25 36 C is greater I1 , I2 , I3

2 0 13 45 invalid input I4

3 51 34 17 invalid input I5

4 29 0 18 invalid input I6

5 36 53 32 invalid input I7

6 27 42 0 invalid input I8

7 33 21 51 invalid input I9

Another set of equivalence classes based on some possibilities of 3 integers A, B, C.

I1 = { < A,B,C > : A>B, A>C }

I2 = { < A,B,C > : B>A , B>C }

I3 = { < A,B,C > : C>A , C>B }

I4 = { < A,B,C > : A = B, A + C}

I5 = { < A,B,C > : B = C, A + B }

I6 = { < A,B,C > : A = C, C = B}

I7 = { < A,B,C > : A = B = C }

Test case ID A B C Expected Result Classes covered test cases


Test case ID A B C Expected Result Classes covered test cases

1 25 13 13 A is greater I1 , I5

2 25 40 25 B is greater I2 , I6

3 24 24 37 C is greater I3 , I4

4 25 25 25 All are equal I7

ADD COMMENT SHARE EDIT (/p/edit/43282/)

Please log in (/site/login/?next=/p/19395/a-program-reads-three-numbers-abc-with-range150--1/) to add an answer.

Continue reading...
The best way to discover useful content is by searching it.
(market://details?

id=com.ques10&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT- Other-
global-all-co-prtnr-py-PartBadge-Mar2515-1)

Engineering in your pocket


Now study on-the-go. Find useful content for your engineering study here. Questions, answers, tags - All in one
app!

COMMUNITY
CONTENT COMPANY
Users (/user/list/)
All posts (/t/latest) About (/info/about/) Team
Levels (/info/levels/)
Tags (/t/) (/info/team/) Terms
Badges (/b/list/)
Subjects (/subjects/) (/info/terms/) Privacy
Earn points (/info/levels/)
For Business (/info/business/) (/info/privacy/)
(https://www.youtube.com/playlist?list=UUH-lr-oL_apReZzPeFGJopg)
(https://in.linkedin.com/company/ques10) (https://wa.me/919503733731)
Get Started (/p/1/)

You might also like