Search code examples
unit-testingtestingequivalence-classes

Equivalence Classes in software testing


I am new to Software testing and I am studying the basic techniques. I read the following problem:

Identify the Equivalence Classes for the following specification: The program accepts five to nine inputs which are 3 digit integers greater than 100.

I think that it doesn't matter how much inputs this program has, and the equivalence class is {99,100,101}. Am I right or not?

After the comments, I think the classes are:

1.(-00,99)
2.[100]
3.(101,999)
4.(1000,+00)

Solution

  • Inputs:

    • 0-4 inputs
    • 5-9 inputs
    • More than 9 inputs

    Values:

    • 0-100
    • 101-999
    • Greater than 999

    The program accepts when there are between 5 and 9 inputs and each input value is a 3-digit number between 101 and 999.