Show TOC

Procedure documentationCreating a Test Configuration in the Test Composition Environment Locate this document in the navigation structure

 

A test configuration comprises a test script, a system data container and a test data container. You create a test configuration to create an automated test case. A related test script is created at the same time. You can edit the test script in the next step or replace it with an existing test script.

For more information, see Components of Automated Test Cases.

Prerequisites

  • You have called the Test Management work center.

  • You have created a system data container.

For more information about prerequisites, see Test Repository.

Procedure

  1. Under Test Repository, choose the Test Script Configurations subview.

  2. To specify the SAP Solution Manager context, choose Set Default Context.

    The specification of the SAP Solution Manager context allows the system to derive the physical system, to which the logical component points, automatically.

    A dialog box appears.

    1. Select an SAP Solution Manager Project or a solution.

      To work on a test configuration without already being connected to a project or solution, choose Global System Landscape.

    2. Select a system role.

      Note Note

      The system role is user-specific. Another user can use the same system data container with another system role without having to change the RFC destination manually.

      End of the note.
    3. To confirm, choose OK.

  3. Choose Create.

    A dialog box appears.

  4. In the Test Configuration field, enter the name of the test configuration.

  5. In the Test Tool field, select the test tool.

  6. Optional: Enter the name of the test script to be created or assign an existing test script.

    Note Note

    If you do not assign an existing test script, a test script is created automatically when you create a test configuration.

    End of the note.
  7. In the Package field, select a transport package or Local Object.

  8. Confirm.

    You go to the Test Configuration screen.

  9. Edit the test configuration attributes. For more information, see Maintaining SAP and Tool-specific Attributes on the Attributes Tab Page.

  10. To edit test script attributes, on the Attributes tab page, do the following:

    1. Select the Test Script radio button.

    2. Select an application component.

    For more information about creating a test script, see Creating a Test Script in the Test Composition Environment.

  11. Edit the parameters of the test script assigned to the test configuration.

    For more information, see Defining the Test Script Interface on the Parameters Tab Page.

  12. To ensure the test configuration can later be found easily, you can enter search terms. For more information, see Defining Search Terms on the Search Terms Tab Page.

  13. You can add references to one or more test data containers.

    For more information, see Test Configuration Editor.

    1. On the Test Data tab page, choose Add.

    2. In the Alias column, enter an alias.

      When parameters of the script are mapped onto the parameters of a test data container, the references are displayed. If the name of a test data container is too long it can be difficult to recognize the references. To monitor the mapping, enter an alphanumeric name of up to three characters for the test data container.

    3. In the Test Data Container column, select the test data container.

      In the Title field, the name of the test data container is displayed.

      If the test data container contains external test data variants, the corresponding checkbox is selected, and the name of the file containing the external test data variants, is displayed.

    4. Save your entries.

      The test data container is assigned to your test configuration.

    5. To create test data variants for a test configuration, you have the following option:

      • You can choose whether to display the value of a parameter or to display the test data container alias and the number of the variant from which the parameter value is taken.

        • To display the value of the parameter, choose Value. 200, for example, is displayed.

        • To display the test data container alias and parameter name, choose Reference:

          Example Example

          If you have a test data container with the alias TD1, instead of the value 200 you could see <parameter name>(<test data container alias>,<number of the test data container variant>), for example I_ORDER_TYPE(TD1,1).

          End of the example.
      • To assign a test data variant to the parameters of your test configuration, do the following:

        1. Choose the Test Data Assignment Wizard pushbutton. The pushbutton is only active if the test script has parameters.

          The Variant Maintenance Wizard starts.

        2. .Enter data as required.

        3. Choose Transfer Wizard Result to Configuration.

        4. On the Test Data tab page, choose Refresh.

          A dialog box appears.

        5. To confirm, choose Yes.

          Under Test Data Variants, the test data variant is displayed.

        6. To allow the test data variant to be selected for the execution, select the Execute checkbox.

          If you select multiple test data variants, you can specify the test data variant to be executed, in the Start Options screen, when executing the test case.

        7. Save your entries.

  14. Optional: To use advanced eCATT functions to edit the test configuration, choose   Goto   Expert Mode  .

  15. Save your entries.

  16. Optional: To replace the test script automatically assigned to the test configuration, you have the following options:

    • To assign a copy of an existing test script which you plan to change, choose   Assign Script   Copy Existing  .

    • To create a reference to an existing test script, choose   Assign Script   Existing  .

    • To create a new test script, choose   Assign Script   New  .

  17. Before you edit an existing test configuration, to check in which test plans, test packages or test scripts the test configuration is used, select the test configuration and choose   Where-Used.   Test Configuration  .

  18. Optional: To execute an eCATT test configuration in the eCATT start option screen, choose Execute. For more information, see Start Options.