Test Cases for Triangle

Test Cases for Triangle

In this post, we will study the test cases for a triangle. This question is usually asked in manual testing interviews, in which the interviewer wants to check if you can think of the different test scenarios of a common object like a triangle.

In order to answer these type of questions, basically, we will validate the different requirements which are nothing but the different properties of a triangle.

  1. Verify that the figure is closed (polygon).
  2. Verify that the figure is two-dimensional and formed with straight lines only.
  3. Verify that the figure has exactly three sides.
  4. Verify that the figure has exactly three vertices.
  5. Verify that the figure has exactly three angles.
  6. Verify that the sum of the angles of the figure is 180 degrees.
  7. Verify that no two sides are parallel to each other.
  8. Verify that the sum of the length of two sides of the triangle should be greater than the length of the third side.
  9. Verify that no two angles of a triangle have 90 degrees and above value.
  10. Verify the type of traingle is as per the specification, based on its sides – scalene, isosceles or equilateral.
  11. Verify the type of triangle is as per the specification, based on its angles – acute angle, obtuse angle, or right-angled triangle.
  12. Verify that the area of triangle is equal to half of the product of its base and height.

Test Case Examples

Login Page Registration Page E-commerce App Google Search
GMail Youtube Facebook ATM Machine
Chair Coffee Machine DateField Door
Calculator Fan Flight Reservation Car
Hospital Management Keyboard Kindle Lift
Mobile Phone Mouse Microwave Oven Notepad
Online Examination Pen Pencil Remote Control
Stapler Table Triangle TV
Wrist Watch Water Bottle Whatsapp White Board
Bike Marker Forgot Password Air Conditioner

От QA genius

Adblock
detector