Show TOC

Procedure documentationFurther Settings for Test Configuration and Test Script

 

In the Test Repository view of the Test Management work center, you can define further attributes for test configurations or test scripts. You can, for example, assign test data containers for reuse, or test data variants.

Prerequisites

You have defined the test configuration, as described under Defining Test Configuration Attributes.

You have defined the the test script, as described under Editing a Test Script and .Defining Input and Output Parameters

Procedure

Adding Test Data Containers

To reuse a test configuration, but change the values that the test uses, you can add references to one or more test data containers.

  1. On the Test Data tab, choose Add.

  2. In the Alias column, enter an alias.

    When parameters of the test script are mapped to 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 can to the following:

    • You can choose whether to display the value of a parameter or 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 the parameter name, choose Reference:

        Example Example

        If you have a test data container with the alias TD1, instead of the value 200 you 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 execution, select the Execute checkbox.

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

        For more information, see the eCATT: extended Computer Aided Test Tool application help in SAP Help Portal at http://help.sap.comInformation published on SAP site, under Start of the navigation path Executing Test Scripts Next navigation step Start Options End of the navigation path.

      7. Save your entries.

Defining Search Terms

To find test scripts and test configurations easily, you can assign search terms. Search terms can describe, for example, the scenario for which the test is to be carried out, the user, or the use case.

  1. In the Test Repository view of the Test Management work center, select a test configuration or a test script.

    Search terms you enter for a test script, also apply to the related test configuration and vice versa.

  2. Choose the Search Terms tab.

  3. Enter search terms according to the conventions of your organization. The maximum is 20 characters.

    Search term values are converted to upper case.

  4. Save and close the window.

Replacing a Test Script in a Test Configuration

To replace a test script that was automatically assigned to a test configuration, you can do the following:

  • To assign a copy of an existing test script, which you plan to change, choose Start of the navigation path Assign Script Next navigation step Copy Existing End of the navigation path.

  • To create a reference to an existing test script, choose Start of the navigation path Assign Script Next navigation step Existing End of the navigation path.

  • To create a new test script, choose Start of the navigation path Assign Script Next navigation step New End of the navigation path.

Using Expert Settings for eCATT

Optional: To use advanced functions to edit the test script, choose Start of the navigation path Goto Next navigation step Expert mode End of the navigation path (transaction SECATT).

Note Note

If you edit a test configuration or test script with transaction SECATT, you cannot edit it again later in the test composition environment.

End of the note.