Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

USE

Aside from inbound interfaces and synchronous interfaces, Int4 IFTT supports testing of outbound interfaces. The testing starts, when a business document triggers the interface and continues until the final version of an XML message is ready to be sent out to the 3rd party receiver by the integration platform.
In order not to send test messages to the receiver system, the PI channel may be automatically turned off resulting in the final XML message being stored in the integration platform, without being actually sent. It doesn't affect the test results. If there are receiver channel adapter modules, check this section: Creating the configuration object for testing Adapter Modules.


The E2E outbound testing requires a sequence of test cases that consist of many associated interface messages and manual actions. Manual actions can be replicated during the test execution by Creating SAP eCATT Recording.
Alternatively the Int4 IFTT outbound testing might be a step in testing of business process by external end to end testing software (like HP UFT, Tricentis Tosca etc). In such case Int4 IFTT step will be called by API or API wrapper t-code. 

PROCEDURE


  1. Create a new object definition with: description, name and the namespace of the tested interface

    Info

    The interface name and namespace should be checked on a sample message in SAP PI/PO monitoring.

    In regular scenarios, if there is one receiver system the interface in message signature will contain sender interface name and namespace.
    In case if there are multiple receivers or multiple messages (Mapping 1 to N), the message signature will contain the receiver interface name and namespace.  

    You can use SAP PI/PO wizard to check your interface.


  2. Add a variable and description (Object Variables Settings 
    The variable is needed to receive the business document identifier (business document number) from previous step or by API, to serach the SAP PI/PO platform for respective message to be verified 

  3. In Variable Processing define actions and variable processors that will process each of the variables data:

    Info

    Two actions are needed:
    Action: 10 - Populate variable before

    execution

    execution 
    The variable processor would be:
    a) READ_PREV (Read variable from previous test case) for cases where the message triggering happens with previous Int4 IFTT step (for example SAP eCATT or inbound test case). The processing parameter is a variable name from previous test

    case 

    case. 
    b) USER_DEF (Read user defined value from cockpit) for cases where the message is triggered by external software (like Tricentis Tosca) and the Int4 IFTT test case is called by API.

    The second action

    is an action that allows to find the

    allows finding the test message based on its content:
    Action: 40 - Locate new message using variable value. The variable processor is XPATH and processing parameter contains XPATH expression to find the message. 

    An example:
    Image Modified


  4. DefineDefine Additional Parameters (if needed)

  5. Define Payload Validation Ignore List. The messages may contain some values different than the reference message that would be a part of test case (like current date & time etc.)

Please check an example in this article: Outbound Flat File scenario with 'PI Outbound' interface testing.