Automatic test case creation for SAP API Management

Messages from SAP API Management can be automatically saved as test cases in Int4 IFTT using the Generic Adapter Robot. The Int4 IFTT, Generic Adapter Robot, is functionality that comes to simplify and speed up the test case creation process. There is no need to search messages for a specified interface manually. The Robot can create test cases based on the existing message Database on Int4 IFTT.

Tcode for the Generic Adapter Robot is /INT4/IFTT_GA_ROBOT.
You can also access the Robot through Int4 IFTT Cockpit under Goto Menu → Generic Adapter Test Case Creation Robot.

Prerequisites

Suppose you want to take advantage of using automatic test cases creation for SAP API Management. In that case, it is necessary to adjust your Proxy Policies in the SAP API Management. You can find more on how to do this in this section:

 

Step-by-step solution:

  1. In Environment Selection, please select the environment from which you want to create test cases:

    IFTT Generic Adapter Test Case Creator
  2. In the next section, called Message Selection Criteria, you can specify all the needed criteria which should be considered by Robot during message selection.

  3. A mandatory step is a configuration under Open Extended Configuration:
    In the beginning, the list will be empty. To import Interfaces from the Database, click on the Import Generic Adapter Interfaces button.
    The Robot will search in the message database for interfaces that don't exist on the current list. The Interface list is based on the Interface name, namespace and Integration Platform. All the found results will be populated.


    As a next step, we need to specify an automation object for each imported entry.

  4. Save the configuration and go back to the main Robot screen.

  5. Next, you should select a period for which Robot should search messages on the Database.
    In the example, the Robot will search for messages in the past 24 hours.
    You can also restrict the search by adding additional criteria in IFTT Automation Object, Interface name, and namespace or providing the name of the Subfolder specified in the Extended Configuration.

  6. Now we move on to the Message Search Control Parameters. Here you have to define the maximum number of test cases read from the Database for each Automation Object.

  7. In the next section, you can specify Execution Parameters:
    Test Run - Robot will search for messages and list out the results without creating any test cases.
    Log Level - Debug - you can select this option to obtain log messages during execution.

  8. The last section covers information about Test Case Creation Parameters.

    Firstly, specify Target Folder where test cases created by Robot should be located (use the F4 input help if needed).

  9. Suppose you didn't specify Automation Object ID in Extended Configuration, or Robot won't find a given object. In that case, you can select a checkbox to force the creation of an automation object during execution (checkbox Create Automation Objects if ID from Extended Configuration is missing).

  10. Define rules about Test Case folders in case folder was not maintained in Extended Configuration. You can ask Robot to search for an existing folder or create a new one using a search pattern. For more information about possible Search Patterns, please open the F1 help.

  11. Enter additional data:

    • maximum number of test cases per folder (including already existing ones),

    • select Skip duplicates in the same folder in case you don’t want to have more than one test case with the same MessageID,

    • Randomize message selection Suppose there is a bigger number of messages in the system, for example, 200. In that case, you can select this option to pick up messages randomly instead of picking ten messages in a row.

    • Define Interface Types for Test Cases - in our case, it will be 54 (Generic Synchronous).

    • In the end, fill the new test case name pattern for test cases created by Robot (you can also use the F1 help for more information).

  12. After you specify all the criteria, execute the report.

After the execution, you will find a screen with additional information:

 

The Robot automatically fetched messages from the Database and creates the folders if needed with test cases based on criteria from the selection screen. You can find a summary at the end of the list. When you open Int4 IFTT Cockpit (tcode /INT4/IFTT_COCKPIT), you should find test cases in the specified folder with the additional subfolders.



 

 

© 2017 - 2022 Int4 AG All rights reserved