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 component testing?

774


Explain the domain testing?

674


What is the difference between test scenarios, test cases, and test script?

706


How to write test cases for "open file dialog box" for ms word? Thanks a lot!

3554


Explain the ad hoc testing?

679






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

2209


Roads concatenation Problem Consider we have some GIS (Geo Information System) operating over some road network. Each road represented as array of two-dimensional geographical points. Road network is a set of roads. System has function called Concatenate(). This function takes raw road network and should return optimized road network. Optimization lies in concatenating roads with matching start or end points, i.e. if road AB end point matches road BC start point, then optimized network should contain concatenated road AC. Optimized network shouldn’t contain two roads which can be concatenated. Your task is to suggest set of test cases for Concatenate() function in order to make sure it works correctly. public interface IPoint { double Lat { get; } double Lon { get; } } public Road : List { } public RoadNetwork : List { } public RoadNetwork Concatenate(RoadNetwork roads);

1941


How to test Webservices and how can we write test cases for that

2899


Do you know mutation testing?

704


please tel me how to write test case for search engine to track peoples,when user enter the city,state,zipcode(ex:Kansas city,Missouri,64155)? (note country is already selected as a united states )

3517


Explain the monkey testing?

676


What is ramp testing?

674


How to write a test cases for the following Please it is urgent Once user clicks that link Invite Friend page opens up thru which user can do 2 functions - first is to search friends detail(name, mail id) from her address book in other sites (india times, yahoo, gmail and rediff) and second to mail the invite to the selected person/s. User can send invite to multiple person at same time. Searching friends detail in other address books will work like this: - User will input name, email id, pwd etc, select from which site she want to get friends list and then click on Import. - Users address book from other sites will be imported in one shot(first time) to iDiva database. - It will be arranged in alphabetical order(complete list) and mail ids which are already used will be in different color. - User will be able to update her address book by clicking on ""Refresh"" button on the page, which will trigger the process again, and fetch new mail ids.

3481


What is Initial Configuration?

1956


Explain the logic testing?

672