PI Manual Inbound guide

USE:

This test type is used when we don’t have successfully processed messages. It can be used, for instance,
for testing the new current development or in migration projects.
We can also use it to upload existing messages from the old solution or upload the sample message from third-party systems while building a new interface.

PREREQUISITES:

  • You have completed the steps described in the General rules for a test case creation.

  • Reference test case with an appropriate SAP PI/PO message header for the tested interface is available in Int4 IFTT.

The reference test case mentioned in the prerequisite list should be test type PI Inbound or PI Unit Testing. The easiest way is to send an empty message by SAP PI/PO testing tab in the message monitor and then capture it as a test in Int4 IFTT. Thanks to this, Int4 IFTT will know the signature of the interface in SAP PI/PO.

PROCEDURE:

  1. Create a dummy (empty) test case from the message interface to become a reference test case. Go into the testing tab in the SAP PI/PO and then create a blank message while keeping the correct signature of the interface. Write down the ID of this message. 

  2. Launch Int4 IFTT Configuration (tcode /INT/IFTT_CONF_MASS or /INT4/IFTT_CONF).

  3. Select a correct automation object definition that test cases will use and open additional parameters. In case the automation object doesn't exist, create it following the instructions under: Automation Object

  4. In the Automation object definition, add the parameter 'Reference PI Test Case'. Provide ID of the reference test case as a value of this parameter.


     

  5. Next, create the test case and ensure that you have completed the steps described in the General rules for a test case creation. To achieve that, go to Test Cockpit ( /INT4/IFTT_COCKPIT) and create a new test case.

    1. For the Interface Type field, select "PI Manual Inbound" 

    2. In IFTT Automation Object field, provide the Automation Object with a configured reference test case. It should be Automation Object you created or edited you edited in step 4 ).

    3. Save the test case.

    4. Click on the Content button.

    5. Switch to XML Editor mode in the Payload window:


f. In this step, you need to upload the test case content. You can paste the payload directly from the clipboard or upload it from a file using the toolbar function.

g. Click on the Save button.

h. Click on the Back button.

i. Confirm with “Yes” the update of test case content:


 

The test case is ready to be executed. 

During execution, IFTT will:

  1. read the signature of the message from the reference test case, 

  2. parse the message and extract the headers of the message, 

  3. merge the signature with the data provided in the payload, which was uploaded into the test case

After those actions, the entire message prepared by Int4 IFTT will be sent to SAP PI/PO.

 

 

 

 

© 2017 - 2022 Int4 AG All rights reserved