RE: for a triangle(sum of two sides is greater than or...
Here are all the positive Test cases:test case#1objective:Verify that Given object is a Triangle,should have only 3 sides.that means not<3 & not>3test case#2objective:Verify that None of the 3 sides length is lessthan or equal to Zero.Test case#3Objective:side1 >= side2+side3test case#4Objective:side2>=side1+side3Test case#5Objective:side3>=side1+side2
RE: for a triangle(sum of two sides is greater than or...
generally , we will calculate the the number of test cases that depends on the perticular module and its complexity.minimum number of test cases=(number of inputs)multiply(1.6) (approx. calculation)
RE: for a triangle(sum of two sides is greater than or...
the minimum number of test cases = 1.6 * number of inputs sounds ridiculous to me.
For any given three points (input size = 3 ? ) to test if they form a triangle or not, the following two tests are SUFFICIENT.
1. Measure distance between the points, taking two points at one time. So you will have 3 values of length, none of them should be zero.
2. All the three points should not fall on a same straight line. To test this, measure the angle subtended by two points at the third point. You will get three values of angles. None of them should be 180 degrees.
RE: for a triangle(sum of two sides is greater than or...
Consider the triangle has three sides like a,b,c:-Obj #1: Side "a" length should not be "Zero"Obj #2: Side "b" length should not be "Zero"Obj #3: Side "c" length should not be "Zero"Obj #4: Side "a" + Side "b" should be equal to Side "c"Obj #4: Side "b" + Side "c" should be equal to Side "a"Obj #4: Side "a" + Side "c" should be equal to Side "b"
RE: for a triangle(sum of two sides is greater than or...
Your question is wrong. addition of two side is not equal to third side. addition of the square of two sides is equal to square of hypotenuse i.e. right angle triangle. Two test case is sufficient for this.