write the testcases for a triangle ABC. given length of 3
sides of a possible triangle, check whether 3 sides do
indeed form a triangle or not if they do then state whether
the triangle is scalene, isoceles or equilateral.
Note that the sum of any two sides of a triangle should be
greater than third side.

A+B>C
B+C>A
A+C>B.

need urgently. thank u... by priya

Answer Posted / pepsi123

the test casse for traingle could be written with the help
of assigning 3 values to 3 sides of the triangle.Possible
test cases for triangle are:

Input condition Output

10,10,10 Equilateral
10,5,4 scalene
10,10,5 Isosceles
0,10,5 invalid
0,0,0 invalid
-7,10,10 invalid
10,5,7,10 invalid
10,2,3 invalid(sum should be greater)
10,5,_(blank) invalid

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the functional testing?

658


how to write test cases for the example state name starts with A B C D E F G H I J K L Z

2069


Write a test case for a car, which has been, recently launch in a market to check its durability, fuel efficiency and its optimum speed.

2082


A wholesaler sells printer cartridges. The minimum order quantity is 5. There is a 20% discount for orders of 100 or more printer cartridges. You have been asked to prepare test cases using various values for the number of printer cartridges ordered. Which of the following groups contain three test inputs that would be generated using boundary value analysis?

1484


Hi Team, I have two scenarios ,only one step alone deference betweeen them and preconditions of Test scenarios are defferent . In the above sutuation , are we going divide test cases into two or can we club into them into a single. Regards seshu

1770






How would you do " Keeping two folders in sync testing"

1985


Explain the concept of semi-random test cases?

785


How to write test case for this scenario. The First Name data entry field shall be removed from the existing Contact Information screen

1721


What is the logic testing?

757


What are the test cases for mouse?

843


How to write test case for this scenario. The text field that reads “ enter SDU number or the city and state of the SDU” shall be removed from the contact screen 

1556


150 integration testing scenarios for gmail

12008


write test case for button of google page?"i am feeling lucky" if button is not appear on page?

2547


explain end to end scenario's for online Money transfer in Banking Domain?

1394


What is Initial Configuration?

1937