Blog > Speed up Int4 IFTT test case creation using Message Selector

Speed up Int4 IFTT test case creation using Message Selector

Int4_IFTT_Test_case_creation_Message_selector
Wojciech Eichert SAP Integration Consultant, SAP Press author
icon__calendar 2020-09-01

In this article you will learn:

  • What is the Int4 IFTT Message Selector
  • How to efficiently find messages for your test cases

Challenges in test case creation

To aid test case creation process Int4 IFTT provides Message Selector – an enhanced search help utility built into Int4 IFTT Cockpit. It facilitates the often difficult task of picking the right messages for the test cases. Directly from the Int4 IFTT cockpit, you get to search for messages on your SAP PI system including advanced selection based on message content. So how does it work?

 

Step-by-step guide

We start in Int4 IFTT Cockpit with a template row for a new test case. We fill in Interface Type, Test Case Description (optional), and Int4 IFTT Automation Object.  We now launch the Message Selector either by hitting F4 or the search help button in the Document Number field. For our example, we’ve picked up ‘PI GUID E2E Inbound’ as the Interface Type and ‘PO_DELIVERY_INB’ as Int4 IFTT Automation Object.


Int4_IFTT_message_selector_create_test_case


The Message Selector displays a new selection screen. The first field is already set to the Int4 IFTT Automation Object (‘PO_DELIVERY_INB’) based on what we’ve specified in the previous screen (otherwise it can be entered here). We can now set the rest of the selection fields according to our requirements.


Int4_IFTT_message_selector_selection_screen


  • Int4 IFTT Automation Object – object relevant for the interface we want to test. It’s populated with the value used when adding new test case row or can be selected here
  • Environment – Int4 IFTT environment indicating which PI system will be searched for messages
  • From/To Date/Time – time frame when the message we are looking for arrived into the PI
  • Max. results – for performance reasons there is a limitation on how many messages may be searched
  • Interface name – interface defined in Int4 IFTT Automation Object (auto-populated)
  • Interface namespace – interface namespace defined in Int4 IFTT Automation Object (auto-populated)
  • Sender name – selection filter for PI Sender Name
  • Sender party – selection filter for PI Sender Party
  • Receiver name – selection filter for PI Receiver Name
  • Receiver Party – selection filter for PI Receiver Party
  • Purchase Order (PO_NUMBER) – content-based search using variables configured in Int4 IFTT
  • Automation Object definition (will be described in more details later on)

Once the filters are specified we execute the search and are presented with a list of messages matching our criteria.


Int4_IFTT_message_selector_result_list


To further help with picking up the right message their payload can be displayed using the “Content” button.

Int4_IFTT_message_selector_result_list_content


We can select one or more messages from the list and hit the “Transfer selected” button to use them as new test cases (in the example 3 messages were selected).

Int4_IFTT_message_selector_result_list_selection


This brings us back to the main Int4 IFTT Cockpit screen. Depending on how many messages we’ve selected for transfer, many new rows are added to the Test Case list in the Int4 IFTT Cockpit. The Test Case Description is assigned a sequential number to distinguish each case.

Int4_IFTT_message_selector_new_test_cases


Finally, we hit the “Save” button to confirm the creation of new test cases and we are ready to start testing.

 

Searching by business data (message payload)

As mentioned before I’ll elaborate briefly on the message content-based search provided by the Message Selector. If the Int4 IFTT Automation Object has variables referring to message content defined, these variables can be used to narrow down search results to specific documents. The example below for ‘PO_DELIVERY_INB’ Automation Object defines ‘PO_NUMBER’ as a variable referencing Purchase Order Number for the delivery. The variable specifies a path pointing to a field in the message content where Purchase Order Number is stored.


Int4_IFTT_message_selector_object_definition_variable


When in the Message Selector we enter a Purchase Order Number in the ‘Purchase Order’ selection field our results will include only delivery messages referencing this particular purchase order.

Int4_IFTT_message_selector_selection_screen_content


Int4_IFTT_message_selector_selection_screen_content_reult

 

Read also

1. Bank Communication Management (BCM) – Collective Payment Order Notification In (CPON) mapping

2. Int4 IFTT crawler for robotic test case creation

Wojciech Eichert SAP Integration Consultant, SAP Press author
SAP consultant since 2012 with broad experience gathered through involvement in several international projects. Main focus of interest are SAP integration technologies, especially including PI/PO middleware and AIF implementations. Enjoys programming challenges.

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.