Automated Unit Testing with ABAP: A Practical Approach
暫譯: ABAP 自動化單元測試:實用方法

McDonough, James E.

  • 出版商: Apress
  • 出版日期: 2021-04-02
  • 售價: $2,040
  • 貴賓價: 9.5$1,938
  • 語言: 英文
  • 頁數: 391
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484269500
  • ISBN-13: 9781484269503
  • 相關分類: 軟體測試Unit Test 單元測試
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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 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) with ABAP
  • 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 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.

商品描述(中文翻譯)

撰寫 ABAP 語言的自動化單元測試。本書以簡單的範例和隱喻教導程式設計師,並解釋撰寫有效自動化單元測試的基本概念。許多 ABAP 程式設計師在 ABAP 開發環境提供自動化單元測試功能之前,就已經學會了他們的程式設計和測試技能。

使用 ABAP 的自動化單元測試:實用方法》為仍在使用過時的手動單元測試流程的 ABAP 程式設計師帶來希望和救贖,牽著他們的手,將他們從絕望的地牢中解救出來,提供一種現代且經過驗證的替代方案。本書首先解釋 xUnit 系列自動化測試框架如何提供快速有效的方式來確保高品質軟體。接著專注於 ABAP 單元測試工具,這是專門適用於 ABAP 語言的 xUnit 框架,展示如何將 ABAP 應用程式納入自動化測試控制,從舊的遺留應用程式到新編寫的應用程式。

儘管 xUnit 測試在許多其他程式語言的開發者中已被廣泛接受,但在 ABAP 社群中,許多程式設計師仍然對 xUnit 概念不熟悉,並且不知道如何開始將自動化單元測試納入他們的開發流程。本書展示如何重構程式,使其設計為可測試,說明如何使用過程封裝和測試隔離來促進自動化測試,包括對測試驅動開發(TDD)和測試替身的詳細解釋。本書內容包括:

- 展示如何為 ABAP 撰寫自動化單元測試
- 使 ABAP 程式設計師對重構寫得不佳的程式碼充滿信心
- 解釋自動化測試工具如何促進快速軟體開發
- 教授如何在 ABAP 中利用測試驅動開發(TDD)
- 提供撰寫自動化單元測試的最佳建議和技巧

您將學到什麼

- 熟悉 xUnit 測試方法
- 知道哪些 ABAP 語句會干擾自動化單元測試的執行,以及如何處理它們
- 理解為測試而隔離程式碼的意義及其實現方式
- 獲得重構寫得不佳的程式碼的信心
- 使 ABAP 程式設計為可測試
- 獲得減少手動單元測試 ABAP 程式所需時間的好處
- 在 ABAP 程式設計中使用測試驅動開發(TDD)
- 在 ABAP 中使用可配置的測試替身

本書適合誰

本書適合對自動化單元測試工具仍不熟悉的 ABAP 程式設計師,以及那些已經使用該工具但希望提高撰寫和使用自動化測試技能的人。本書針對需要了解一些物件導向概念以使用此工具的程序式 ABAP 程式設計師所感受到的猶豫和不安,擴展他們的視野,並幫助他們邁向不同的程式設計方法。

作者簡介

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.

 

作者簡介(中文翻譯)

詹姆斯·E·麥克多諾(James E. McDonough)在特倫頓州立學院(Trenton State College)獲得音樂教育學位。在新澤西州公立學校系統教學僅兩年後,他在過去的38年裡擔任電腦程式設計師,同時在紐約和費城之間活躍於自由爵士貝斯手的角色。自1997年從大型主機程式設計轉向ABAP以來,他現在作為合約ABAP程式設計師,每天設計和編寫ABAP程式。他是使用ABAP中面向物件程式設計功能的倡導者,並在過去幾年中教授私人ABAP教育課程,他的教育背景使他能夠以初學者能理解的方式呈現和解釋複雜的概念。