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

What are semi-random test cases?

856


Give me a example that differentiate Test case Procedure,Test case Scenario,Test case Discription & test steps.

2198


Explain the acceptance testing?

689


Write the test case for a login page?

723


What is the syntax testing?

688






can anybody help me how to write a test case for a program eg: c or C++ ,and also how to check their outputs

2084


If there are 3 modules what would be test for that three modules but that 3 modules are not developed or what are the test case for that 3 modules

1092


Could you pls give me sites where i can test card? mail me to

2289


"search"test cases on Linkedin website and how will you write test cases on it?

5684


Explain transaction testing?

651


What is test cases for mobile phone ?

775


Explain the glass box testing?

657


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 

1560


You have designed test cases to provide 100% statement and 100% decision coverage for the following fragment of code. If width > length then biggest_dimension = width else biggest_dimension = length end_if the following has been added to the bottom of the code fragment above. Print 'biggest dimension is ' &biggest_dimensionprint 'width: ' & width print 'length: ' & length how many more test cases are required?

898


can anyone send me a copy of a business requirement and test cases attributed to such requirent. thank u

1668