Automated Unit Testing with ABAP
Apress (Verlag)
978-1-4842-6950-3 (ISBN)
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.
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.
Chapter 1: Introduction.- Chapter 2: Preparing to Take the First Step.- Chapter 3: Software Quality.- Chapter 4: The Origins of Automated Unit Testing.- Chapter 5: Automated Unit Testing with ABAP.- Chapter 6: Rudiments.- Chapter 7: Design for Testability.- Chapter 8: Test Doubles.- Chapter 9: Service Locator.- Chapter 10: Leveraging the Service Locator.- Chapter 11: Test-Driven Development.- Chapter 12: Configurable Test Doubles.- Chapter 13: Obtaining Code Coverage Information Through ABAP Unit Testing.- Chapter 14: Cultivating Good Test Writing Skills.- Chapter 15: Welcome to Autropolis.- Appendix A: Requirements Documentation and ABAP Exercise Programs.- Appendix B: Answers to Chapter Quizzes.- Appendix C: Concepts Associated with Defining Local Test Classes.-
Erscheinungsdatum | 09.04.2021 |
---|---|
Zusatzinfo | 16 Illustrations, black and white; XV, 393 p. 16 illus. |
Verlagsort | Berkley |
Sprache | englisch |
Maße | 178 x 254 mm |
Themenwelt | Informatik ► Software Entwicklung ► Qualität / Testen |
Informatik ► Weitere Themen ► SAP | |
Mathematik / Informatik ► Mathematik ► Finanz- / Wirtschaftsmathematik | |
Wirtschaft ► Betriebswirtschaft / Management | |
Schlagworte | ABAP design • ABAP programming • ABAP Test Double Framework • ABAP unit testing • automated testing • Configurable test double • Design for Testability • SAP • Software Quality • Unit Testing • xUnit |
ISBN-10 | 1-4842-6950-0 / 1484269500 |
ISBN-13 | 978-1-4842-6950-3 / 9781484269503 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
aus dem Bereich