Show TOC

Procedure documentationCreating a Test Configuration or a Test Script 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.

To compose a test script, you record a sequence of steps or compose them manually.

When composing an eCATT test script, you can use eCATT scripts and/or third-party test scripts. When composing a CBTA test script, you can use CBTA test components.

Prerequisites

  • You have created a system data container.

For more information about prerequisites, see Test Repository.

Procedure

Creating a test configuration via the Business Blueprint

Note Note

We recommend creating a test configuration via the Business Blueprint:

  • To link sets of test configurations to a process step of the Business Blueprint and organize your tests accordingly

  • To be able to use (Business Process Change Analysis.

You have the following benefits:

  • You assign the SAP Solution Manager context (project, node and system role) automatically.

  • You can select the executable object for the node, in the Business Blueprint (or directly get the one assigned to it).

End of the note.
  1. In the Business Blueprint (transaction SOLAR02), select a business process.

  2. On the Transactions tab page, assign a transaction, program, or other object, for example, an SAP GUI transaction, a CRM application (using the role and logical link parameters), a Web Dynpro ABAP application, or a URL, to a business process step. .

  3. On the Test Cases tab page, choose Insert Line.

  4. Specify the test case type.

  5. In the Test Case column, enter the technical name of the test configuration.

  6. Optional: Specify the test object.

  7. Choose Create.

    You go to the Test Composition Environment.A dialog box appears.

  8. Enter the name of the test configuration.

  9. In the Package field, select a transport package or Local Object.

  10. Confirm.

    A test script is created automatically when you create a test configuration.

Creating a test configuration or a test script in the Test Composition Environment

We recommend test configurations, but to create a test quickly, you can create a bare test script.

  1. Under Test Repository, choose one of the following sub-views::

    • Test Scripts

    • Test Configurations

  2. If you create a test configuration, to specify the system role (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. This changes the system on which the tests are recorded and executed. This is useful when defining a set of systems like development, test, pre-production, and production systems.

    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. If you create a test configuration: In the Test Configuration field, enter the name of the test configuration.

    Note Note

    If you want a test configuration to remain local (not be transported to other systems) enter a technical name starting with Z (depending on the namespace specified in your system configuration). For example, you store all your test cases on a single SAP Solution Manager system. The namespace is automatically assigned after recording a screen component. For more information about configuring the namesspace, see SAP note 1763697.

    This does not apply to third-party test tools or CBTA.

    End of the note.
  5. In the Test Tool field, select the test tool.

  6. Enter the name of the test script to be created, or assign an existing test script, if you create a test configuration.

    Note Note

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

    End of the note.
  7. Optional: Change the default version number.

  8. In the Title field, enter a name.

  9. In the Package field, select a transport package or Local Object.

  10. Confirm.

Result

You go to the Test Script or the Test Configuration screen.

Edit the test configuration attributes. For more information, see Maintaining SAP Attributes on the Attributes Tab Page.