
Part 6 - Test Data Containers
Use
Test data containers allow you to maintain data variants independent of test scripts. They contain data for use with the input parameters of test scripts.
Only the parameters specified in a test data container that have the same name and type as those in the test script will be accessible.
A test data container need not have the same number of parameters as the test script. Missing parameters will have default values supplied by the test configuration. Extra parameters are ignored.
You will now create a new test script and some test data containers that you will use latter in a test configuration.
Procedure
|
Parameter |
Value |
Visibility (I/E/V) |
Data Type in ABAP |
Length |
ALPHA |
1 |
I |
C |
128 |
BETA |
2 |
I |
C |
128 |
GAMMA |
3 |
I |
C |
128 |
DELTA |
0 |
E |
C |
128 |
OMEGA |
4 |
V |
C |
128 |
Parameter |
Value |
Data Type in ABAP |
Length |
ALPHA |
11 |
C |
128 |
BETA |
22 |
C |
128 |
GAMMA |
33 |
C |
128 |
EPSILON |
44 |
C |
128 |
Variant |
ALPHA |
BETA |
GAMMA |
EPSILON |
ECATTDEFAULT |
11 |
22 |
33 |
44 |
V1 |
1 |
4 |
2 |
4 |
V2 |
7 |
4 |
6 |
|
V3 |
9 |
3 |
6 |
Summary
Data containers contain data variants. Only parameters of the same name and type as those in a test script will be usable with that test script.