Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

SAP Learning

Writing Testable Code for ABAP

via SAP Learning

Overview

Agile methods like Scrum and Kanban aim to enable teams to deliver feature increments in short cycles. One of the key elements to achieving this efficiently and with high quality is the practice of test automation, which ensures that all functional and regression testing is automated. These tests are written by developers, ideally at the same time as the product code. The key to effective test automation is learning to write code which is easily testable. There are numerous benefits to following this development approach, including producing higher quality code in less time, reducing efforts for bug analysis and fixes, and being more responsive to changing requirements.

This course will teach you how to write testable code in ABAP and covers topics such as unit testing, test isolation, test-driven development, testing legacy code, and more.

Syllabus

  • Introduction to ABAP Unit Testing
    • System Information and hands-on exercises
    • Overview and Motivation
    • Introduction to ABAP Unit
    • Demo of ABAP Unit Testing in Roman Numerals
    • Exercise – ABAP Unit Testing in Roman Numerals
    • Review of Sample Solution
    • Unit Test Design, Tips, and Benefits
    • Downloads
    • Assignment Week 1
  • Test-Driven Development
    • Introduction to Test-Driven Development
    • Demo of TDD on Money Machine
    • Exercise – TDD: Money Machine
    • Exercise – TDD: Money Machine
    • Review of Sample Solution
    • Downloads
    • Assignment Week 2
  • Pair Programming & Writing Testable Code
    • Introduction to Pair Programming
    • Unit Testing for New Features in Legacy Code
    • Exercise – WTC: "Rebate Engine for Web Shop"
    • Review of Sample Solution
    • Downloads
    • Assignment Week 3
  • Test Isolation Theory and Practice
    • Introduction to Test Isolation
    • Test Isolation – Preparation
    • Test Isolation – Injection
    • Test Double Terminology and Tasks
    • Demo of Test Isolation: Injection Techniques
    • Exercises – Test Isolation
    • Review of Sample Solution
    • Downloads
    • Assignment Week 4
  • Dependency Lookup
    • Introduction to Dependency Lookup
    • Demo of Dependency Lookup
    • Exercise – Dependency Lookup
    • Review of Sample Solution
    • Multilevel Tests
    • Exercise – Multilevel Tests
    • Review of Sample Solution
    • Downloads
    • Assignment Week 5
  • Working with Legacy Code, Tools and Summary
    • Providing Testability for Existing Code
    • Test Double Frameworks
    • Continuous Integration
    • What to Focus on When Writing New Code
    • Downloads
    • Assignment Week 6
  • Next steps and further information
    • Next steps and further information

Taught by

Juergen Heymann

Reviews

4.0 rating, based on 1 Class Central review

Start your review of Writing Testable Code for ABAP

  • It was a good course. A new way to understand and write code!
    I'm sure that somewhere inside you'll find something useful!

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.