Triangle Test Cases: in this post, we are going to share the test case scenario for a triangle. We have already shared so many test cases for manual and automation testers.
Triangle Test Case
- Check if the shape is equilateral or isosceles or scalene
- Check It must be a closed figure.
- Check the figure must contain only three sides, which are straight and only three angles.
- Check two sides must be passing through each vertex.
- Check the sum of all three angles must be 180 degrees.
- Check all sides should be the same in length for equilateral.
- Check only two sides should be the same for an isosceles.
- Check if one angle is 90′, then it is right-angled.
- One/Two/Three sides are 0.
- Check if the sides are coinciding or not.
- Check if the shape of the image is right-angled isosceles, there is a right angle or not if the triangle is acute or obtuse or right-angle.
- Check what the isosceles shape is; the opposite angles are equal or not.
- Check if it is equilateral, all the angles are equal or not [i.e., 60degrees].
- Check if the user can draw the three circles [interior, exterior, circumcircle ]
- Check all sides are equal or not.
- Check If all sides are equal, then it is the equal triangle or a scalene triangle
- Check all angles or equal or not.
- The sum of all angles in a triangle should be 180o.
- The sum of any two sides of a triangle is always higher than the third side. It is less than the third side. It implies that the three sides lie on a straight line.
- 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 the third angle must be zero, which is not possible.
- A triangle can not have two obtuse angles ie, a triangle can not have two angles more than 90o as it is exceeding 180o for two angles only.
- Check Minimum and Max number of sides = 3
- Check all the sides are connected (there must be three connection points)
- Check No line overlapping each other.
- Check two sides cut perpendicular
- Check that no sides are parallel.
Test Cases for Isosceles Triangle
- It contains only three sides.
- Each side is connected to the other two sides.
- Any of the two sides’ angles should be equal.
- The sum of the angles should be 180 degrees.
- The length of any two sides should be equal.
- Check whether square one of the sides is equivalent to the sum of the square of the other two sides. (a^2+b^2 c^2)
- Check whether all the sides are in a different direction.
Test Cases for Equilateral Triangle
- It contains only three sides.
- Each side is connected to the other two sides.
- The angle between any two sides should be equal to 60 degrees.
- The sum of the angles should be 180 degrees.
- The length of all sides should be equal.
IF type of triangle is to tested
- All sides shud be the same in length for equilateral.
- Only two sides shud be the same for an isosceles triangle
- If one angle is 90′, then it is right-angled.
In this post, we have discussed the various types of scenarios. but if you guess I have something missed, then you can notify us by the comment in the comment section.
Leave a Reply