Oo test case design
Download
1 / 3

(OO) Test Case Design - PowerPoint PPT Presentation


  • 99 Views
  • Uploaded on

(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. Test Case Example (Unit Testing).

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' (OO) Test Case Design' - lottie


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Oo test case design
(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


Test case example unit testing
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 >= 0, amt < balance, …


Integration testing
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.


ad