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.
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
To reuse a test configuration, but change the values that the test uses, you can add references to one or more test data containers.
On the Test Data
tab, choose Add
.
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.
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.
Save your entries.
The test data container is assigned to your test configuration.
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
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)
.
To assign a test data variant to the parameters of your test configuration, do the following:
Choose the Test Data Assignment Wizard
pushbutton. The pushbutton is only active if the test script has parameters.
The Variant Maintenance Wizard starts.
.Enter data as required.
Choose Transfer Wizard Result to Configuration
.
On the Test Data
tab page, choose Refresh
.
A dialog box appears.
To confirm, choose Yes
.
Under Test Data Variants
, the test data variant is displayed.
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.com, under .
Save your entries.
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.
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.
Choose the Search Terms
tab.
Enter search terms according to the conventions of your organization. The maximum is 20 characters.
Search term values are converted to upper case.
Save and close the window.
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
.To create a reference to an existing test script, choose
.To create a new test script, choose
.Optional: To use advanced functions to edit the test script, choose SECATT
).
Note
If you edit a test configuration or test script with transaction SECATT
, you cannot edit it again later in the test composition environment.