Blog > SAP API testing with Int4 IFTT runs integrated with Tricentis Tosca

SAP API testing with Int4 IFTT runs integrated with Tricentis Tosca

Michał Krawczyk SAP Mentor, SAP Press Author
icon__calendar 2019-12-14

From this article you will learn:

  • What SAP API is
  • What does it mean to test the SAP API
  • How to quickly build test cases
  • How to run all test cases from a single platform
  • How to integrate Int4 IFTT 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.

API Scan Tosca

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).

Tricentis Tosca API Scan

Step 3

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

API Test Case

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.

RunTests Request

Step 5

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

Int4 IFTT pre-populate

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

output and validation variables

Step 7

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

EvTCFailed = 0

Step 8

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

Run scenario in ScratchBook

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

ScratchBook

Further reference:

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

Int4 IFTT openSAP

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

Int4 IFTT learning paths

c) Enterprise Continuous Testing book

 

Michał Krawczyk SAP Mentor, SAP Press Author
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).

Contact us

If for any reason, the thought of reaching out to us has crossed your mind, then by all means do not hesitate to get in touch with us, as we are more than happy to put to rest all of your concerns.