(OO) Test Case Design - PowerPoint PPT Presentation

About This Presentation
Title:

(OO) Test Case Design

Description:

(OO) Test Case Design. In the small. Class-level (Unit testing) ... Integration Testing. Include collaborating classes. Example: BankAccount, ATMGui, and Customer ... – PowerPoint PPT presentation

Number of Views:25
Avg rating:3.0/5.0
Slides: 4
Provided by: jpver
Category:
Tags: case | design | test | testing

less

Transcript and Presenter's Notes

Title: (OO) Test Case Design


1
(OO) Test Case Design
  • In the small
  • Class-level (Unit testing)
  • Generate (random) operation sequences on an
    object
  • In the large (cluster based testing, use-case
    based testing)
  • Objective test class collaboration
  • Integration testing

2
Test Case Example(Unit Testing)
  • Example BankAccount class
  • Some Random Operation Sequences
  • create.deposit.deposit.balance.withdraw.
    withdraw.close
  • create.withdraw.deposit.balance.withdraw.close
  • Enumerate input cases for each class method
  • ensure that operation sequences cover all the
    input/parameter cases
  • withdraw balance gt 0, amt lt balance,

3
Integration Testing
  • Include collaborating classes
  • Example BankAccount, ATMGui, and Customer
  • Formulate operations according to use case. e.g.,
  • encode-customer-info, create-account, setup-pin,
    withdraw, deposit, get-balance.
Write a Comment
User Comments (0)
About PowerShow.com