First Steps

This article shows the steps to create the first test case for the SAP PO Java stack.

You can execute the steps after successful installation & customizing of the Int4 IFTT.

  1. Choose a sample asynchronous SAP PO interface to test. Let's start with a basic interface that has message mapping and a single receiver. Verify if there are already processed messages that we will use for your test cases.
    Sample message that You can use for TC creation:

  2. Create an automation object. An automation object is a container that will contain all the common validation rules for test cases for a particular scenario.

    2.1 Go to /n/int4/iftt_conf_mass → SAP PI/PO wizard (button in the top menu)
    2.2 Choose Environment
    2.3 Choose your interface from the Integrated Configurations (ICOs) list. You can use a filter.
    2.4 Enter Automation Object Name in IFTT Object Column: for example, IF102_SYS_B_SO and the description, for instance: FTP Sales Orders. Mark row and choose the 'Build IFTT Configuration Objects' button. Confirm the following screen with default settings. 
    2.5. IFTT created automation object successfully:


    In our case, there were four ICOS with the same interface and four different senders. For all of them, a single automation object is enough as they have the same functional rules.

  3. Creation of a folder for test cases in Int4 IFTT Cockpit
    3.1 Open /n/int4/iftt_cockpit
    3.2 Go to change mode
    3.3 Press the plus icon in the Scenarios container 
    3.4 It is a first scenario folder so that it will be on the top level. Enter the description and the default Landscape and press SAVE.


    You can also practice and create subfolders. Please note that landscape is mandatory at the top level. Sub-folders will inherit the landscape if it is empty.

  4. Test case creation

4.1 Still in change mode, select the folder that you created and press the 'Plus' Icon in the test cases box (bottom container)

4.2 In a new row, enter Test Case description, for example, 'My First Test Case', chose Interface type: PI Unit Test, and select Automation Object. Select your object.
4.3 Now, place the cursor in the Document Number field and go to F4 help. The SAP PI/PO Message Selector will open:

Adjust date and time to display messages processed in SAP PI/PO. You can also filter the sender or receiver.
On the next screen, select a few messages and press the 'Transfer Selected' button:

IFTT will fill the test case container with new test case proposals. Now adjust the description and press the save icon.
Now press the save icon.
Congratulations! Your first test cases are ready for execution!

5. Test case execution

Leave the change mode and choose the folder with your test cases. Press Execute All button in the test cases container.

 

Click on the test case description or number to view the details:

 

Suppose first results failed due to the difference in expected reference payload and current execution payload due to the dynamic interface logic, for example, current date or time. In that case, you may set the Ignore List as described in Payload Validation Ignore List, and Creating ignore list expressions from report results.

To go back to the report overview, please press this icon: (otherwise, it would revert you to test cockpit)

 

6. Checking results

The results persist in the Int4 IFTT database. Therefore, anytime you can review previous executions by the 'Results' button in the top menu or select individual test case and press the 'Test Case Results' button in the test case container menu.

 

 

 

 

 

© 2017 - 2022 Int4 AG All rights reserved