15

Testing

Abstract

This chapter explains how object-oriented software developed with the techniques shown in previous chapters can be tested. Specifically, two levels of testing are presented: unit tests for methods in classes and use case tests for system interface testing. The chapter focuses on the functional approach to tests. A success test must be created for each success scenario and a failure test for each set of unacceptable values. With this approach, test cases may be systematically designed. Equivalence partition and limit value analysis are also presented to determine the best choices for the test cases.

Keywords

Unit test; system operations test; system test; test-driven development; functional test

Key topics in this chapter

  • • Functional ...

Get Object-Oriented Analysis and Design for Information Systems, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.