While moving from the world of on-premise deployments to the world of cloud deployments, one thing becomes clear: delivery times are getting dramatically reduced. Performing manual regression tests for large applications are simply not a valid option anymore. Regression tests should be fully automated. Delivering software in the cloud requires us to adapt code quickly and with excellent quality. Therefore, test automation is one of the key factors to run efficiently in the cloud. In this blog, I present a collection of links to kickstart your test automation journey with ABAP Cloud
What kind of tests exist and how can I write a test?
- SAP Help Documentation – Ensuring Quality of ABAP Code – Understand the ABAP Unit framework and the ABAP Test Cockpit (ATC). Understand the basics of where, how to write ABAP Unit tests, launching and evaluating the results of these tests. Deep dive into the various frameworks available for managing dependencies you may encounter when writing ABAP Unit tests such as Object-Oriented dependencies, database dependencies, ABAP function modules, RAP business objects or Authority checks.
- RAP Test Guide - For the ABAP RESTful Application Programming Model (RAP) in general, the RAP Test Guide is a great source to understand the various unit and integration test possibilities.
- Code Samples – The flight reference scenario comes with code samples for tests around various use cases and is available on GitHub.
How can I integrate tests into the development process?
- Checking Quality of ABAP Code with ATC | SAP Help Portal - The ABAP Test Cockpit (ATC) is the standard tool for checking the quality of ABAP development objects using static checks.
- You could work with ATC Checks during development to frequently check and clean-up defects either at object level or at package/transport request level.
- You, as a developer, could explicitly run the ATC check in the transport organizer tool before releasing a transport request or task. This could also be done implicitly where the ATC check is launched automatically. This automatic check provides a first Q gate when the code leaves the development system. ATC findings may stop the release of the transport.
- Automate the software lifecycle management process – On SAP Business Technology Platform, to make the setup of continuous integration pipelines as easy as possible, the open-source project "Piper" was created. In general, there are various functions (Library steps) as well as whole pipelines available for reuse. Some of these include running ABAP Unit tests, deploying, and executing ABAP Test Cockpit (ATC) checks, etc.
- If you are a partner developing add-on-based applications on the SAP BTP ABAP Environment, the Build Product Version application of the Landscape Portal also runs a pipeline which includes a step for execution of ATC checks and ABAP units.
Looking forward to conversations in the chat on your ABAP testability experience in the cloud.