Skip to main content
  • Book
  • © 2021

Automated Unit Testing with ABAP

A Practical Approach

Apress
  • Shows you how to write effective automated unit tests using the ABAP language
  • Helps you understand the issues involved with writing effective unit tests in an ABAP environment
  • Teaches you how to get the most out of automating ABAP program unit testing

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (15 chapters)

  1. Front Matter

    Pages i-xv
  2. Introduction

    • James E. McDonough
    Pages 1-7
  3. Preparing to Take the First Step

    • James E. McDonough
    Pages 9-19
  4. Software Quality

    • James E. McDonough
    Pages 21-27
  5. The Origins of Automated Unit Testing

    • James E. McDonough
    Pages 29-42
  6. Automated Unit Testing with ABAP

    • James E. McDonough
    Pages 43-98
  7. Rudiments

    • James E. McDonough
    Pages 99-134
  8. Design for Testability

    • James E. McDonough
    Pages 135-158
  9. Test Doubles

    • James E. McDonough
    Pages 159-210
  10. Service Locator

    • James E. McDonough
    Pages 211-249
  11. Leveraging the Service Locator

    • James E. McDonough
    Pages 251-304
  12. Test-Driven Development

    • James E. McDonough
    Pages 305-327
  13. Configurable Test Doubles

    • James E. McDonough
    Pages 329-351
  14. Cultivating Good Test Writing Skills

    • James E. McDonough
    Pages 357-366
  15. Welcome to Autropolis

    • James E. McDonough
    Pages 367-371
  16. Back Matter

    Pages 373-393

About this book

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 underautomated 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 ABAP
  • Instills ABAP programmers with the confidence to refactor poorly written code
  • Explains how an automated testing harness facilitates rapid software development
  • Teaches how to utilize test-driven development (TDD) withABAP
  • Offers advice and tips on the best ways to write automated unit tests


What You Will Learn

  • Become familiar with the xUnit approach to testing
  • Know the ABAP statements that interfere with running automated unit tests and how to accommodate them
  • Understand what it means to isolate code for testing and how this is achieved
  • Gain the confidence to refactor poorly written code
  • Make ABAP programs designed for testability
  • Reap the benefits of spending less time manually unit testing ABAP programs
  • Use test-driven development (TDD) with ABAP programming
  • Use 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 butwant 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.

Authors and Affiliations

  • Pennington, USA

    James E. McDonough

About the author

James E. McDonough received a degree in music education from Trenton State College. After teaching music for only two years in the New Jersey public school system, he spent the past 38 years as a computer programmer while also maintaining an active presence as a freelance jazz bassist between New York and Philadelphia. Having switched from mainframe programming to ABAP in 1997, he now works as a contract ABAP programmer designing and writing ABAP programs on a daily basis. An advocate of using the object-oriented programming features available with ABAP, he has been teaching private ABAP education courses over the past few years, where his background in education enables him to present and explain complicated concepts in a way that makes sense to beginners.

Bibliographic Information

  • Book Title: Automated Unit Testing with ABAP

  • Book Subtitle: A Practical Approach

  • Authors: James E. McDonough

  • DOI: https://doi.org/10.1007/978-1-4842-6951-0

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Business and Management, Apress Access Books, Business and Management (R0)

  • Copyright Information: James E. McDonough 2021

  • Softcover ISBN: 978-1-4842-6950-3Published: 02 April 2021

  • eBook ISBN: 978-1-4842-6951-0Published: 01 April 2021

  • Edition Number: 1

  • Number of Pages: XV, 393

  • Number of Illustrations: 16 b/w illustrations

  • Topics: Software Management

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access