To accelerate testing activities, SAP S/4HANA Cloud comes with a test automation tool, detailed test scripts, and prepackaged standard automated tests (called test automates) for most business processes.
The test automation tool and test automates are ready to run as part of SAP S/4HANA Cloud and can be used without prior automation tool experience. The tool offers a simplified way to develop custom test automates to achieve automated testing for specific customizations of business processes. Considering the delivery pace of SAP S/4HANA Cloud, SAP extends support for automated testing by triggering tests in SAP S/4HANA Cloud customer quality tenants with each upgrade using the tool called the post upgrade test. Furthermore, while the test automation tool is native to SAP S/4HANA Cloud, you can also use this tool with SAP Cloud ALM.
In this blog post, you’ll learn how SAP enables automated testing for SAP S/4HANA Cloud implementations. We’ll explain the various testing activities and which tools SAP offers to manage these activities efficiently.
Testing is the cornerstone of software product development at SAP and is performed throughout the development lifecycle of SAP S/4HANA Cloud, covering different levels of testing. Common tests include unit tests, functional integration tests, solution acceptance tests, E2E business process tests, and regression tests. The application also undergoes nonfunctional tests to confirm cloud principles and product standard guidelines. Even though tests are executed at every phase of development, progressive testing of the functionality is critical while the system is being configured to implement SAP S/4HANA Cloud. Moreover, you must validate that business processes in use are not impacted by the software changes delivered regularly by SAP.
The figure below shows phases of the SAP Activate methodology and priority areas for test activities. To accelerate automated testing for your specific implementation, SAP provides strong test automation capabilities built into SAP S/4HANA Cloud.
Let’s look at priority areas for test activities by SAP Activate phases, as follows:
The test automation tool for SAP S/4HANA Cloud is an integral part of the solution. The tool has three SAP Fiori apps, which can be accessed via the SAP Fiori launchpad in the Automated Testing group, as shown in the next figure, if the role SAP_BR_ADMIN_TEST_AUTOMATION has been assigned to the user. In the following sections, after describing the available test automation tool apps, we’ll provide an overview of SAP’s test execution infrastructure for SAP S/4HANA Cloud customers. Furthermore, we’ll introduce the available standard test automates and the SAP offering for post-upgrade tests.
Let’s briefly look at each of these apps:
Now let’s highlight the key capabilities of the test automation tool for SAP S/4HANA Cloud:
The test automation tool uses a shared test execution infrastructure hosted by SAP using SAP BTP. All automated executions triggered from different SAP S/4HANA Cloud quality tenants are executed on this shared test execution server, as shown in the following figure. Automated test executions are conducted in a headless browser on this shared test infrastructure, and test results are saved and published in the SAP S/4HANA Cloud software system where automated test execution was triggered.
Managed by SAP, this test execution server helps ensure the automatic scaling of computing resources needed to perform automated test executions. Using hyperscalers and virtual machines (VMs) in the cloud (conforming to data protection and privacy guidelines of SAP, including EU access-only guidelines), the server abstracts the multiple complexities involved with infrastructure, such as setup, regular maintenance, software updates, and scaling. Thus, you can perform preconfigured automated test executions in the cloud.
Standard test automates are based on test scripts documented in supported best-practice processes of SAP S/4HANA Cloud. Using the Manage Your Test Processes app, you can search these test automates by scope item ID or by the name of a business process, or you can filter by Type and select Standard to view all standard automates. Note that the test automates are visible in the system only when the corresponding business process (scope item) is active. You can copy these test automates as custom test automates and modify them to meet your business needs. Editing or deleting a standard test automate is not allowed; these objects are maintained by SAP and updated with every release upgrade. You must maintain your own custom test automates as required.
Standard automations are ready to run; you can execute them by adding them in a test plan and by providing data variants (adding master data or organizational data needed to execute) using the Test Your Processes app. SAP publishes comprehensive documentation for each standard test automate. Further details about the test tool are available in SAP Note 2129147.
SAP offers post upgrade tests for business with live SAP S/4HANA Cloud implementations; testing is performed by SAP in your quality tenants, including the triggering of automated tests, the analysis of test results, and the initiation of necessary corrective measures if needed. With post upgrade tests, tests are performed based on active scope and use a predefined set of standard test automates. In order for you to perform post upgrade test executions, appropriate data (master data and organizational data) needed for executions are automatically picked from the system where tests are executed, test plans are created, and automated execution is triggered, as shown in this figure. Failures are automatically categorized with reasons for failure and failure help for faster resolution of nonapplication errors.
Performed immediately after the SAP S/4HANA Cloud quality tenants are upgraded with the new release, this test mainly identifies any obvious regressions with SAP S/4HANA Cloud software or business processes in your quality tenants and provides a high-level overview of upgrade impact (if any). Automated test execution results performed as part of post upgrade tests are available for review (or re-execution) in the Test Your Processes app. You also have the option of making a copy of post upgrade test plans for enhancement with additional test requirements.
Editor’s note: This post has been adapted from a section of the book SAP S/4HANA Cloud: An Introduction by Thomas Saueressig, Jan Gilg, Uwe Grigoleit, Arpan Shah, Almer Podbicanin, and Marcus Homann. Thomas is a member of the Executive Board of SAP SE. Jan is the president of SAP S/4HANA, SAP’s flagship product that encompasses ERP, finance, and the supply chain. Uwe is globally responsible for end-to-end go-to-market strategy and solution management of cloud and on-premise SAP S/4HANA. Arpan is the head of SAP S/4HANA Cloud product management at SAP. Almer is the head of SAP S/4HANA portfolio management. Marcus works for the SAP S/4HANA strategy team at SAP.
This post was originally published 6/2024.