Monday, February 7, 2011

What is Boundary value analysis and Equivalence partitioning?

Equivalence Class Partitioning
-This is often used to reduce huge number of test cases to minimal number of them.Basically we divide input data class into three classes

1.Valid input data->For eg:If allowed input for range of numbers is 1 to 100.Then any number between 1-100 is enough rather than executing each of them.

2.Invalid input data below lowest limit->For eg:Lowest limit for range 1 to 100 is 1.So submit data with value less then 1(0,-1 etc)

3.Invalid input data above highest limit->For eg:Highest limit for range 1 to 100 is 100.So input data with value greater then 100(101,102 etc)

Boundary Value Analysis
Problem often occurs at the edges of allowed range.Boundary value analysis helps to find errors are boundaries more than center of data limit.
Three test cases for this ,lets consider for range 1 to 100

1.Test data exactly as the input boundaries of the range.Hence test case is (1,100)
2.Test data below the edges of range.Hence test case is (0,99)
3.Test data above the edges of range.Hence test case is (2,101)

1 comment:

  1. Any software which is produced without any testing can be dangerous to the users. In software development lifecycle, testing is important from the technical point of view.STC Technologies

    ReplyDelete