Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Messages from SAP API Management can be automatically saved as test cases in Int4 Suite using the Generic Adapter Robot. The Int4 Suite, 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 Suite.

How to access the Test Case Robot for Generic Adapter

To access the Test Case Robot for Generic Adapter open the Test Case Robot for Generic Adapter tile.

Prerequisite
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: SAP API Proxy Policies Adjustment

How to configure the Test Case Robot for Generic Adapter

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

  2. In the next section, called Payload Selection, 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. TO DO - not working


    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 Int4 Suite 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 Suite Cockpit you should find test cases in the specified folder with the additional subfolders.


  • No labels