If you use (or intend to use) the SAP Cloud Platform ABAP Environment to develop ABAP applications in the cloud and want to establish quality assurance for your cloud-based ABAP developments then you are surely interested in the executing of ABAP Test Cockpit checks over our ABAP custom code in the cloud.
By default SAP Cloud Platform ABAP Environment offers you the ATC check variant SAP_CLOUD_PLATFORM_DEFAULT containing the preconfigured ATC checks, which will be used if you just run ATC in ABAP Development Tools in Eclipse over your custom code in your cloud-based ABAP system .
But surely you may want to execute ATC static checks based on your own ATC check variants, which you already well thought out and defined in your on-premise systems and which are already well-proven for the static quality assurance of custom ABAP code in your on-premise landscape. But how to reuse your on-premise ATC check variants in the cloud and even adjust them if needed?
You can import your on-premise ATC check variants to your ABAP system in SAP Cloud Platform ABAP Environment using abapGit and starting with the SAP Cloud Platform ABAP Environment 2008 you can configure your on-premise ATC check variants for cloud use using the new SAP Fiori App ABAP Test Cockpit Configurator. Let’s take a look in detail at how it works.
Import your on-premise ATC check variant to the Cloud using abapGit
First you need to import your on-premise ATC check variant to the cloud. See the Andre’s blog for details on How to import and use ATC check variants in SAP Cloud Platform ABAP Environment using abapGit.
In the following the ZTF_MY_STEAMPUNK_VARIANT will be used as an example for the imported ATC check variant from the on-premise system.
Configure your ATC check variant in the Cloud
The new SAP Fiori App ABAP Test Cockpit Configurator allows you to maintain ATC configurations for the Cloud based on ATC check variants. For more information how to provide access to users and how to implement this App, see the SAP Help Documentation ABAP Test Cockpit Configurator.
View and maintain ATC configurations
Open the ABAP Test Cockpit Configurator App by clicking on it. If you click on the Go button all available ATC configurations in your ABAP system in the SAP Cloud Platform ABAP Environment will be listed and the default configuration is marked as Yes. You can any time click on the respective “>“ button and adjust an ATC configuration.
As you see from this example already two ATC configurations were created based on the previously imported on-premise ATC check variant ZTF_MY_STEAMPUNK_VARIANT and one of them was set as default.
Create a new ATC configuration based on an ATC check variant
Let’s create a new ATC configuration based on the imported ZTF_MY_STEAMPUNK_VARIANT. To do so click on the Create button, enter the Name (my_new_cloud_configuration in this example) and select the ATC check variant ZTF_MY_STEAMPUNK_VARIANT. All your ATC on-premise check variants imported with abapGit will appear in the list and you can select any of them there.
Press Save button:
Change ATC check priorities
Now you can (if needed) change the ATC check priorities for this configuration. Use the Search field to search for the check class or message code you want to edit.
Press Edit button and use the drop-down menu to change a priority of a message:
Don’t forget to save your changes:
Set your ATC configuration as default
If you now want to use your adjusted ATC configuration as default just select it in the ATC configurations list and click the Set Default button: