Intermediate-Advanced user level
Write automated unit tests for the ABAP language. This book teaches programmers using simple examples and metaphors and explains the underlying concepts of writing effective automated unit tests. Many, if not most, ABAP programmers learned their programming and testing skills before the ABAP development environment provided an automated unit testing facility.
Automated Unit Testing with ABAP: A Practical Approach offers hope and salvation to ABAP programmers who continue to toil with antiquated manual unit testing processes, taking them by the hand and lifting them out of that dungeon of despair with a modern and proven alternative. It begins by explaining how the xUnit family of automated testing frameworks provides a quick and effective means of insuring high-quality software. It then focuses on the ABAP Unit Testing Facility, the xUnit framework applicable specifically to the ABAP language, showing how it can be used to bring ABAP applications under automated testing control, from old legacy applications to those newly written.
Whereas xUnit testing has been widely accepted with developers writing in many other programming languages, it is an unfortunate fact in the ABAP community that many programmers still are unfamiliar with xUnit concepts and do not know how to begin implementing automated unit testing into their development process. This book demonstrates how to refactor programs so they become designed for testability, showing how to use process encapsulation and test isolation to facilitate automated testing, including a thorough explanation of test-driven development and the use of test doubles. The book:
Shows how to write automated unit tests for ABAPInstills ABAP programmers with the confidence to refactor poorly written codeExplains how an automated testing harness facilitates rapid software developmentTeaches how to utilize test-driven development (TDD) with ABAPOffers advice and tips on the best ways to write automated unit tests
What You Will Learn
Become familiar with the xUnit approach to testingKnow the ABAP statements that interfere with running automated unit tests and how to accommodate themUnderstand what it means to isolate code for testing and how this is achievedGain the confidence to refactor poorly written codeMake ABAP programs designed for testabilityReap the benefits of spending less time manually unit testing ABAP programsUse test-driven development (TDD) with ABAP programmingUse configurable test doubles in ABAP
Who This Book Is For
ABAP programmers who remain unfamiliar with the automated unit testing facility and those who already use it but want to improve their skill writing and using automated tests. The book addresses the reluctance and trepidation felt by procedural ABAP programmers who need to know some object-oriented concepts to use this facility, expands their horizons, and helps them step through the doorway leading to a different approach to program design.