One and Only One Definition

In the set of A,B,C... one and only one may be true, but never all false; thus, there will always be just one true.


Story 

A user wants to maintain accounts for various types of customers. 

When a user enters that account maintenance system, he/she selects what type of maintenance activity to do. 

The user can do one and only one activity at a time for any account.


Actors

Who are the actors for our story?

  • User:  The object selecting the account to maintain
  • Account:  The object being maintained 


Test Cases

What are the test cases necessary to define in order to cover all exit points?

  1. Add  Corporate Account - The user wants to add a corporate account.
  2. Modify Corporate Account - The user wants to modify a corporate account.
  3. Delete Corporate Account - The user wants to delete a corporate account.
  4. Add  Government Account - The user wants to add a government account.
  5. Modify Government Account - The user wants to modify a government account.
  6. Delete Government Account - The user wants to delete a government account.
  7. Add  Retail Account - The user wants to add a retail account.
  8. Modify Retail Account - The user wants to modify a retail account.
  9. Delete Retail Account - The user wants to delete a retail account.


Variables & States

What are the variables needed to check our test cases, and for each variable, what states are needed?

  • addAccount
    • add Corporate account
    • add Government Account
    • add Retail Account
  • modifyAccount
    • modify Corporate account
    • modify Government Account
    • modify Retail Account  
  • deleteAccount
    • delete Corporate account
    • delete Government Account
    • delete Retail Account

GenRocket Pairwise Configuration


Domain Definition


Pairwise Function


Pairwise Test Case Variables


Pairwise Variable - addAccount


Pairwise Variable - deleteAccount


Pairwise Variable - modifyAccount


Pairwise Test Case Constraints


Constraint 

This one inclusive constraint covers all three test cases.


Pairwise Matrix


Pairwise Test Cases