Setup Cloud Connector to Mock SAP CPI iFlows

Setup Cloud Connector to Mock SAP CPI iFlows


To mock endpoints in SAP Cloud Integration/CPI you need to set up the Cloud Connector to point to the Figaf system.

If you deploy in SAP BTP there is no need to set up Cloud Connector because it is hosted on a public URL. 


This guide helps you set it up the Cloud Connector to Figaf to your CPI system.


1) First you need to install the Cloud Connector. See the guide. You need to connect with the subaccount where your SAP CPI system is hosted. 

2) Expose your internal Figaf Host with an external HostPort. You will need to expose all url Paths to it.

3) Now test you can create a connection and reach the Figaf system. It is best to a new Destination from your BTP Cockpit and see if you can reach the Figaf server. 

4) In the configuration of the Figaf system you need to add the following configurations. 

  1. irt.cloud-connector.url - the URL from the CPI to IRT. Usage: --irt.cloud-connector.url=http://<HOSTFROMCPI>:<PORT>/irt/api/cpi-testing-mock-data/step/. This property is used during testing with mock data on CPI systems.
  2. irt.cloud-connector.locationId - the location of the cloud connector. Usage: --irt.cloud-connector.locationId=<YOURLOCATION>. This property is used during testing with mock data on CPI systems.
  3. irt.cloud-connector.on-premise - If you want not to use Cloud Connector and the CPI has direct access to your Figaf system. Default is true so no need to configure it. Set it to false to skip Cloud Connector, and remember to configure the URL. 

The host in the above example would then be http://sapserv02:8000/irt/api/cpi-testing-mock-data/step/



Now you should be able to run test cases that are Mocked by Figaf system. To make sure the test cases have all the information needed. 



Notice you can only have one configuration to Figaf, but you will always be able to set up the same value into different sub-accounts. 

    • Related Articles

    • Deploy to SAP BTP, Cloud Foundry

      This article describes how to deploy the Figaf tool to CPI BTP, Cloud Foundry. Install "cf" command on your computer https://github.com/cloudfoundry/cli/wiki/V7-CLI-Installation-Guide#installers-and-compressed-binaries. Log in to your SAP BTP account ...
    • Onboarding/Installation (Figaf DevOps Suite - Cloud Version)

      In this mission you will see how to connect to your SAP Cloud Integration system.   1) Open the email you have received 2) Click on the link to open the page and enter a new password 3) Now you are in the Figaf Tool The screen may change a little ...
    • How to use PI/PO systems in SAP BTP

      PI/PO systems are usually located in a private environment so you need to use special SAP services to organize the connection. First of all, configure a cloud connector on the system which has access to PI/PO. (Configuration of the cloud connector is ...
    • How to add xslt templates to the tool deployed in SAP BTP

      Migration from PI/PO systems to CPI systems is one of the most important features of the Figaf tool. Here you can find more details about it: https://help.figaf.com/portal/en/kb/configuration/pi-to-cpi It requires XSLT templates placed on a server. ...
    • How to download logs from Figaf app in SAP BTP

      SAP BTP cockpit allows accessing only the last 1000 lines of logs. Sometimes it's enough for debugging but in most cases, it's not. So there is a way to download all needed logs directly from the app. First of all, you need to execute next two ...