-
You have an SAP BTP ABAP environment system.
-
You’ve created a Communication User and generated a password as described in How to Create Communication Users.
-
You’ve created a Communication System as described in How to Create Communication Systems.
-
You’ve created a Communication Arrangement as described in How to Create a Communication Arrangement.
The URL displayed for the inbound service of the communication arrangement will be needed for the GET requests described below.
-
You have selected the communication scenario SAP_COM_0763 for your communication arrangement and have mapped it to your communication system.
The communication scenario SAP_COM_0763 offers an OData V4 API for maintenance of ABAP Test Cockpit (ATC) configurations on the business objects SATC_CI_CF_RT_E, SATC_CI_CF_E, and SATC_CI_CF_P_V. Therefore, you have to create a valid communication arrangement as described in the prerequisites before performing the actual test steps.
-
Get CSRF token: The first step serves for the authentication on the server. Use the URL you've obtained from the Communication Arrangement's inbound service for the GET request. The response header contains an CSRF token, which is used as authentication for the GET request following in step 2.
Request
Authentication Type: Basic Authentication. Enter the name of your Communication User (not the technical user ID) and the generated password.
GET <URL_from_Communication_Arrangement>
Headers
KEY
VALUE
x-csrf-token
fetch
Response
Headers
KEY
VALUE
x-csrf-token
<token>
-
Read ATC configurations: To read ATC configurations, prepare a GET request using the following parameters:
Request
Header
KEY
VALUE
x-csrf-token
<token>
-
All configurations:
GET <URL_from_Communication_Arrangement>/configuration
-
By name:
GET <URL_from_Communication_Arrangement>/configuration?$filter=conf_name eq '<CONFNAME>'
-
Default configuration:
GET <URL_from_Communication_Arrangement/configuration?$filter=is_default eq true
If you want to look deeper into configuration data (e.g. the priorities of the configuration), you can use expands by adding:
- to all priorities: &$expand=_priorities
- filtered only on priorities changed from default_priority: &$expand=_priorities($filter=priority ne default_priority)
-
-
Deploy ATC configurations: To deploy an ATC configuration, prepare a POST request and use the body to provide a json (or XML) representing the configuration you want to deploy.
Request
Header
KEY
VALUE
content-type
application/json
x-csrf-token
<token>
POST<URL_from_Communication_Arrangement>/configuration
-
Flat Insert of changed priorities:
When you pass the json from the
get_configurationwith no expand by creating a valid configuration, the default priorities will also be created. -
Deep Insert of changed priorities:
You can pass the json from the
get_configurationwith expand to filtered priorities and potentially change theconfnameif desired.
-