Hi,

Consider a situation where u pass the number as the input .(eg: Entering ur marks on a web page.)

Assumption: marks are between 0 to 100

For this
1) Boundary value analysis : take the boundaries 0 and 100 and test for the condition such as -1,0,+1 and 99,100,101

2) Equivalence partitioning : is not as such a stand alone method for testing. It is implemented by Boundary value analysis.

Partition the inputs into a) valid and b) invalid partition as
a) valid 0 -100
b) invalid -1 to -infinity and 101 to infinity

and then apply the boundary value analysis for the above.


Still if u not clear, use this Equivalence partitioning, Boundary value analysis

Regards,
Elango.