What We Are Learn On This Post

**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 in 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 lines 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 be 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.

## Test Case for a Triangle

- Check It must be a closed figure.
- Check The figure must contain only 3 sides which are straight and only 3 angles.
- Check 2 sides must be passing through each vertex.
- Check the sum of all 3 angles must be 180 degrees.
- Check all sides shud be same in length for equilateral
- Check only 2 sides shud be same for the isosceles triangle.
- Check if 1 angle is 90′ then it is right-angled.

**More Test Cases**

- All sides should be equal
- Any 2 sides of a triangle are equal
- Sum of two sides of a triangle equals to the third side
- One/Two/Three sides of a triangle are 0
- Check if there are 3 sides, Check for the angles and their sum[should be 180degrees]
- Check if the triangle is equilateral or isosceles or scalene
- Check if the sides are coinciding or not
- Check if the triangle is right-angled isosceles, there is a right angle or not.
- If the triangle is acute or obtuse or right-angles
- Check if the triangle is isosceles, the opposite angles are equal or not.
- Check if the triangle is equilateral, all the angles are equal or not[i.e., 60degrees]
- Check if the user is able to draw the 3 circles [interior, exterior,circumcirlce]

### Test Cases for Equilateral Triangle

- It should have only three sides.
- Each side is connected to the other 2 sides.
- The angle between any two sides must be equal to 60 degrees.
- Sum of angles must be 180 degrees.
- Length of all sides must be the same.

**Test Case for a Triangle**

- Check if the triangle is equilateral or isosceles or scalene
- Check It must be a closed figure.
- Check the figure must contain only 3 sides which are straight and only 3 angles.
- Check 2 sides must be passing through each vertex.
- Check the sum of all 3 angles must be 180 degrees.
- Check all sides should be same in length for equilateral
- Check only 2 sides should be same for isosceles triangle.
- Check if 1 angle is 90′ then it is right angled.
- One/Two/Three sides of a triangle is 0.
- Check if the sides are coinciding or not
- Check if the triangle is right-angled isosceles, there
- is a right angle or not.
- if the triangle is acute or obtuse or right-angle.
- Check if the triangle is isosceles, the opposite angles are equal or not.
- Check if the triangle is equilateral, all the angles are equal or not [i.e., 60degrees].
- Check if the user is able to draw the 3 circles [interior, exterior, circumcircle ]

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