SAP API testing with Int4 IFTT runs integrated with Tricentis Tosca

In his latest book “Enterprise Continuous Testing: Transforming Testing for Agile and DevOps” Wolfgang Platz mentions that API testing is the future of automated testing as it is the only part of enterprise system testing where in reality you can automate >85% of test cases.


What is SAP API in reality?

Most of the companies which use SAP use asynchronous (IDOC, Proxy) integration scenarios for their B2B partners or legacy systems. Most of those message exchanges however are using SAP middleware products like SAP Process Orchestration (SAP PO) or SAP Cloud Platform Integration (SCPI).

What does it mean to test the SAP API ?

There are many use cases but the most common ones are:

– SAP Process Orchestration (SAP PO) upgrades, patching or migrations
– non SAP middleware to SAP Process Orchestration (SAP PO) migrations
– SAP Process Orchestration (SAP PO) to SAP Cloud Platform Integration (SCPI) migrations
– continuous testing of SAP Process Orchestration (SAP PO) or SAP Cloud Platform Integration (SCPI) integration flows
– SAP Application Interface Framework (SAP AIF) testing
– testing IDOC, Proxy scenarios at the S/4HANA (or any other SAP backend) system

How can we quickly build test cases for those use cases ?

Int4 IFTT is the only Native SAP certified testing tool which fully supports all of the above use cases out of the box. Due to the nature of asynchronous integration and Int4 IFTT prebuild accelerators, test cases for all use case can be implemented in days/weeks and not in months as with other software which is not designed specifically for SAP API testing.

More information about testing SAP application integration scenarios can be found in our free openSAP course: Virtualize and Automate Your SAP Testing Using Int4 IFTT

Can we use test SAP API with Int4 IFTT from Tricentis Tosca ?

Int4 IFTT is a complementary product to Tricentis Tosca and you can easily run all of your test cases from a single platform (like Tricentis Tosca). In order to do that you can call Int4 IFTT api directly from Tricentis Tosca as shown in the example below and analyse the results of all types of testing in a single tool.

How can we integrate Int4 IFTT with Tricentis Tosca ?

Below you can find a simplified example on how to run Int4 IFTT from Tricentis Tosca. For Int4 IFTT configuration please have a look at the openSAP course from the Further Reference section.

Step 1

Open API scan in Tosca commander.

Step 2

Once the API scan opens up you can open Int4 IFTT run WSDL file using the File menu
and Tosca will prepare an executable SOAP Service call. Over there you can either specify an
Int4 IFTT test case ID – ItTestCasesList or a whole test folder – ItScenariosList.
Make sure you populate the authentication tab where you need to set authorization for your system
where Int4 IFTT is installed (like Solution Manager, S/4HANA system or a another SAP Netweaver instance).

Step 3

Now export your API test into Tosca Commander to finish creating the Test configuration.

Step 4

Add the changeable field – Int4 IFTT test case ID – ItTestCasesList or a whole test folder – ItScenariosList
as a variable by using the variable create button.

Step 5

Pre-populate the Int4 IFTT test case ID in the in the test case to run the demo.

Step 6

Add output and validation variables which we need to check after the run is done. You can use two variables:

a) EvTCFailed – numer of failed test cases – which should be = 0 if the run is correct
b) EvReportURL – url with the results from Int4 IFTT run where you can get detailed information about the run

Step 7

In the test case response you can mark to verify that EvTCFailed = 0 and EvTCFailed is populated as shown in Figure below.

Step 8

Once you finish you can try running the scenario in the scratchbook.

Once the test is successful you should get the status in the scratchbook.

Further reference:

a) Free openSAP course: Virtualize and Automate Your SAP Testing Using Int4 IFTT

b) Use our openSAP learning paths to find the lesson specific to a single testing use case

c) Enterprise Continuous Testing book


SAP integration consultant since 2004. He has been recognized by SAP included becoming an SAP Mentor in 2007 and winning the top contributor/topic leader award from SDN (SAP Developer Network portal) in SAP PO/PI eight times. Michal is the author many SAP integration related books: Mastering idoc business scenarios with SAP XI , Mastering idoc business scenarios with SAP PI (second edition), The Essentials on SAP NetWeaver Process Integration (A SAP Mentor 2010 Series) and SOA Integration ? Enterprise Service Monitoring and Serializing Interfaces in SAP AIF. He wrote many articles for SAP Professional Journal, SAP CRM, SCM, Solution Manager, HR, SCM online expert magazines. He is recognized as one of the leading SAP integration experts in the world and has written more than 140 articles and blogs on SCN (scn.sap.com), in addition to regularly speaking at SAP events (SAP Teched, SAPPHIRE, SAP Inside Track) on SAP PO/PI and SAP AIF. He?s also a forum moderator on SCN in SAP PI/PO and AIF areas.World class expert in SAP PI/PO, BPM, IDOCs/ALE, FEH/ECH, BRFPlus, AIF and other SAP integration technologies. Deep module knowledge in SAP logistics modules (SD, MM, LE) allows Michal woking very efficiently with module consultants. One of the favorite interface scenarios is the decentralized warehouse management scenario (DWMS) where SAP is connected to an external warehouse management system

Leave a Reply

Your email address will not be published. Required fields are marked *


ul. Bednarska 1
60-571 Poznan, Poland



Write to us