THE GATE TO THE REAL SOFTWARE TESTING EXPERIENCE AND KNOWLEDGE IN "TESTING A SOFTWARE" WORLD

Friday, November 4, 2011

Black Box Testing Technique : Equivalence partitioning

Black Box Testing Technique

If I would like to execute testing a software (web testing or windows application testing), I start with thinking about how to select the test cases. Then, if I have no idea about software's internal algorithm and cannot cover all combinations of input values and preconditions for a module of software because of resource constraint (Time or manpower), I will use Black Box Testing Technique to design the input values for this software testing.

Equivalence partitioning

Equivalence partitioning is a software testing technique that groups the input data for a module of a software into partitions of data that can represent each possible case. Then, select an input data from each partition.

Example
I would like to execute software testing with withdrawal module on ATM system. The maximum amount is $500 and minimum amount is $1.

Partitioning:
  1. More than $500
  2. Between $500 and $1
  3. Less than $1
Select input data:
  1. $800 for "More than $500" case
  2. $200 for "Between $500 and $1" case
  3. $0 for "Less than $1" case
----------------------------------------------------------
Now you can design and execute testing a software (web testing or windows application testing) by using Equivalence partitioning testing technique. 

Let's find the Boundary value analysis testing technique for software testing in the next article.

3 ความคิดเห็น:

Sir,
I have a question here .. Using EP in this above example itself .. Do we write test cases on $1 and $ 500..??

I mean to ask : Between $1 and $500 , Including or Excluding the boundaries..???

I can be reached at samrat.bats@gmail.com

Hi SamRat Jha,
It is up to your decision. If you think that the boundary value should be another partition, it can be split like this.
$800 for "More than $500" case
$500 for "Equal to $500" case
$1 for "Equal to $1" case
$200 for "Between $500 and $1" case
$0 for "Less than $1" case

BTW, I usually use follows the example and then, combine this technique with BV as below.
1) EP
$800 for "More than $500" case
$200 for "Between $500 and $1" case
$0 for "Less than $1" case
2) BV
$501, $499 and $500 for "Maximum value is $500" case
$2, $0 and $1 for "Maximum value is $1" case

Let me know if you still have any question.

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More