The documentation may have changed since you downloaded the PDF. You can always find the latest information on SAP Help Portal.
Note
This PDF document contains the selected topic and its subtopics (max. 150) in the selected structure. Subtopics from other structures are not included.
2014 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose
without the express permission of SAP SE. The information contained herein may be changed without prior notice. Some software products marketed by SAP SE
and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by
SAP SE and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be
liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express
warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. SAP and other
SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE in Germany and other
countries. Please see www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.
Table of content
PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.
Page 1 of 6
Table of content
1 Organizing Test Data
1.1 Creating Test Data Containers
1.2 Creating Variants in Test Data Containers
1.3 Importing Parameters into Test Data Containers or Test Scripts
1.4 External Test Data (External Variants)
1.5 Using External Test Data During Test Execution
1.6 Test Data Editor
PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.
Page 2 of 6
!--a11y-->
This later approach can be illustrated by the example below, where the raw data for a transaction based on the flight data model is shown in the table. You can
see that much of the data falls into two logical groups (airline and aircraft) and many of the fields have identical values.
By separating the aircraft data and the airline data into different test data containers, you can then conveniently reuse them when a test script calls for data of the
appropriate sort. Additionally, by condensing the data so that particular combinations occur only once, (for example, LH 400) you only have to change the
combination in on place, to affect all tests that reference it.
PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.
Page 3 of 6
Each variant contains a field for each parameter. If no value has been entered in a field, the value specified in the ECATTDEFAULT is the value of the field.
!--a11y-->
!--a11y-->
Prerequisites
At least one parameter has been defined on the Parameters tab.
Procedure
In the test data editor, choose the Variants tab.
Choose
to append a new variant.
In the Variant field, enter a name for the variant.
For each of the parameters, either enter a value or leave the field empty.
Choose
!--a11y-->
PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.
Page 4 of 6
Procedure
1. Open the eCATT object for editing.
2. Choose Edit Import Parameters .
The Import Parameters dialog box appears.
3. Select the type and name of the eCATT object containing the parameters to be imported. You can also specify a version of a test script.
4. Choose Get Parameters .
The parameters are displayed in the left pane. For test scripts, you can toggle between the display of parameters and command interfaces.
5. Select the parameters that you want to copy.
6. Choose Append . Alternatively, use drag and drop.
The selected parameters are displayed in the right pane.
7. Choose Copy .
!--a11y-->
File Formats
There are two formats TXT and XML. Each has advantages and disadvantages.
TXT
The TXT format is simple and is similar to CATT external variants. It is easy to fill TXT files with data programmatically, or to edit them in a text editor or
spreadsheet. Because Excel is often used to edit this type of file, numbers are prefixed with # to prevent Excel from formatting them differently. If you use a normal
text editor, you can omit the # but you should be aware that files downloaded from eCATT will contain the # character.
An asterisk (*) denotes a comment line. This must be in the first position on the line (in a spreadsheet, the first position of the first cell).
The TXT format cannot be used for structured parameters.
XML
The XML format allows the use of structured parameters in external variants. When you download a file from eCATT, you will also get the appropriate schema in
the form of an XSD file.
Default Path
You can set the default path for upload and download. To do this, choose Utilities Settings and then the eCATT and Editor tabs. Then enter the path on in
the Variants field.
Prerequisites
The parameters must already exist in the test data container or test configuration to which you want to upload the data.
Procedure
PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.
Page 5 of 6
Downloading Variants
1. In the test data editor or test configuration editor, choose Edit Variants Download .
The Save as dialog box appears.
2. In the File name field, enter a name for the file.
3. In the Save as type field, select either TXT or XML. Structured parameters can only be saved in XML.
4. In the Save in field, browse to the folder where the file is to be saved.
5. Choose Save .
In a test configuration, a dialog box gives you the option to replace references to test data containers with the fixed values.
Uploading Variants
1. In the test data editor or test configuration editor, choose Edit Variants Upload.
2. In the dialog box, browse to the folder where the file is stored and select the file.
3. Choose Open .
4. Specify whether the existing variants should be deleted before the external variants are uploaded.
!--a11y-->
!--a11y-->
Variants
You can create variants containing different parameter values. There is always a default variant called ECATTDEFAULT. This contains parameter values that are
used if a corresponding value has not been entered in a variant.
Default values in the test data container override the default values of the test script if they are referenced by the test configuration. That is, when a field referenced
from a test configuration contains no value, the default value from the test data container is checked, and when that has no value, the default value in the test script
is used.
PUBLIC
2014 SAP SE or an SAP affiliate company. All rights reserved.
Page 6 of 6