wirte the test cases for triangle by using testing
techniques
Answers were Sorted based on User's Feedback
Answer / vimal
The above test cases are ok. But the most productive test
case is to check that the sum of two sides should be
greater than third side.
| Is This Answer Correct ? | 11 Yes | 3 No |
Which technique to be used dont know.
but cases are.
1> min and max number of sides = 3
2> sum of angles between sides = 180
3> shud have min and max 3 intersection points
4> no line overlapping each other.
IF type of triangle is to tested
1> all sides shud be same in length for equilateral
2> only 2 sides shud be same for isosales triangle
3> if 1 angle is 90' then it is right angled.
| Is This Answer Correct ? | 10 Yes | 4 No |
Answer / reddy
case id input expected results
1 length of the sides are 3 3 3 equilateral triangle
2 length of the sides are 2 2 3 isosceles triangle
3 length of the sides are 2 3 4 scalene triangle
4 length of the sides are 2 3 6 error: invalid input data
value
5 length of the sides are 2 3 ? error: invalid input data value
6 angles of the triangle are >90 >90 >90 oblique triangle
7 angles of the triangle are <90 <90 <90 oblique triangle
or acute triangle
8 angles of the triangle are 60 60 60 equilateral triangle
9 angles of the triangle are 45 45 90 isosceles triangle
10 angles of the triangle are 30 60 90 scalene triangle
11 one angle of triangle is more than 90 obtuse triangle
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / kumar
well the requirement is not clear.
no need of wasting time to a=write testcase.
reason is...
is a traingle is needed to be constructed?
is the area is being calculated?
is the perimeter nedd to be calculated?
or is it the type of traingle is being found out?
angles are being measured?
etc.....
nothing is clear hence you can write on any issue.
just get back to the customer and ask him what exactly he
requires.
or just assume any one scenario and write test cases for
that.
| Is This Answer Correct ? | 9 Yes | 8 No |
Answer / syed
Test cases for triangles :-
Major test cases for the triangle to find whether it exists
or not
i) Sum of all angles in a triangle should be 180o.
ii) Sum of any two sides of a triangle is always greater
than third side.It it is less than the third side it implies
that the three sides lie on straight line.
iii)A triangle can not have two right angles ie a triangle
can not have two angles equal to 90o as it is equal to 180o
for two angles and third angle must be zero which is not
possible.
iv) A triangle can not have two obtuse angles ie a triangle
can not have two angles more than 90o asit is exceeding 180o
for two angles only.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / anamika phalke
1) Write 10 unique test cases to adequately test the triangle?
2) List 10 questions/assumptions that you would like to ask
or assume w.r.t testing the above program.
please answer these questions today..
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / riya
1) Write 10 unique test cases to adequately test the above
program.
2) List 10 questions/assumptions that you would like to ask
or assume w.r.t testing the above program.
please answer these question immediatly.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / k.chandra sekhar
a) 1st check the all sides are equal or not
b) If the all sides are equal then it is the equal
triangle or that is scalene triangle
c) Check the all angles or equal or not
d) This types of all
My name is k.chandra sekhar,
My phone no is 09246540049,Hyderabad.
My mail id is ndra_143@yahoo.co.in
I am take the class for projects if you interst contact
If any body want full explain send the mail
| Is This Answer Correct ? | 2 Yes | 6 No |
wat is mutation testing ?
give an example of how to write functional test case.in this test case can we write all +ve and -ve conditions?
what test case is written specifically for web applications?
10 Answers Aricent, Mind Tree,
how to write test cases for smart meter for gas and electricty
hi there... can any1 tel me hw to prepare a traceability matrix by taking a practical scenario..i know the theory part bt dont kno how to implent dat..
how do u knw when to stop writing test case for a given project.
pls let me know the answer, recently i faced this question in interview. when you are writing the test cases,if the requirements are changed what will u do?
write a test case for employee income caculation it is awindows aplication when window is opened all options should be disabled except empno when user enter 3 charcters empname,empdes,basic should be displayed but they should be inactive,HRA,DA are active enter these two gross is displayed,enter tax then net income is displayed.all inputs must be integers and min is 1 and max is 4 charcters for all text boxes.gross =basic+HRA+DA and netincome= gross- tax
how to prepare a test case for online restaurant table reservation system. plz give an answer ASAP, email at suja_rvndrn@yahoo.co.in
An Excel sheet contains 2rows and 3 columns of data.I want to copy these data in to the another excell sheet. Write the possible positive and negative test cases?
is test cases are necessary for testing non functional testing
Write tast case for a+b=c?