Test your testing skill

While i was preparing for ISTQB exam, i attainded a workshop on how to think on writting testcases and coverages. The trainer gave us a problem which is very simple.

The problem talks about  " A program reads three integer values as input and those values represent the lengths of the sides of a trangle.After taking input it will say if that trangle is a
1. Scalene----where no two sides are equal
2. Isosceles---where two sides are equal
3. Equilateral--where three sides are equal

he told us to calculate the no of testcases that will cover this req.

it is simple right??

yes...we thought ...we started writting set of testcases...
try it....and let me know........
Test your testing skill Test your testing skill Reviewed by Animesh Chatterjee on April 09, 2010 Rating: 5

2 comments:

  1. Hi Ani,

    We can create 12 TC as follows:

    S.no Side 1 Side 2 Side 3
    1 10 10 10 Equilateral
    2 -1 or 0 -1 or 0 -1 or 0 Nagative TC- invalid data
    3 5 10 10 Isosceles
    4 10 5 10 Isosceles
    5 10 10 5 Isosceles
    6 -1 or 0 -1 or 0 10 Nagative TC- invalid data
    7 10 -1 or 0 -1 or 0 Nagative TC- invalid data
    8 -1 or 0 10 -1 or 0 Nagative TC- invalid data
    9 10 5 15 Scalene
    10 -1 or 0 10 10 Nagative TC- invalid data
    11 10 -1 or 0 5 Nagative TC- invalid data
    12 10 0 -1 or 0 Nagative TC- invalid data

    Let me know the correct answer...

    Regards,
    Nicholas

    ReplyDelete
  2. Good job Nicholas...But we need to find more

    ReplyDelete

Powered by Blogger.