Creating Parameters Automatically
Use
As well as creating parameters manually in the parameter list or command interface, you also have the option of automating this process.
Prerequisites
-
You can create parameters automatically for the following commands:
-
CREATEOBJ/CALLMETHOD/CALLSTATIC
-
REF/REFEXT/REFCATT/REMOTECATT
-
GETTAB/CHETAB/SETTAB
-
FUN
-
WEBSERVICE
-
TCD
-
SAPGUI/GETGUI/CHEGUI
-
-
Parameters can only be created automatically at the top level of structures and tables.
-
The type of the parameters created is determined by the command interface.
Procedure
You can create parameters automatically in the Insert Pattern dialog or in the command interface.
Creating in Pattern Dialog
-
If one of the abovementioned commands is selected in the Insert Pattern dialog, the checkbox Create Parameters is displayed.
-
Select this option if you want to create one or all possible parameters automatically during test script creation.
-
Confirm your entries.
The window Create Parameters for Command Interface <command interface name> is displayed.
-
Select the parameters you want to create.
In the default setting, all possible parameters are selected. You can select or deselect all parameters of a category by selecting the respective Importing, Exporting, Changing, or Tables checkbox.
-
If necessary, adapt the values to your requirements.
-
Choose OK.
The parameters are added to the parameter list of the editor.
Creating in Command Interface
-
In the command editor, select the command interface.
-
In the structure editor, choose the Create Parameters icon.
The window Create Parameters for Command Interface <command interface name> is displayed.
-
Select the parameters you want to create.
In the default setting, all possible parameters are selected. You can select or deselect all parameters of a category by selecting the respective Importing, Exporting, Changing, or Tables checkbox.
-
If necessary, adapt the values to your requirements.
-
Choose OK.
The parameters are added to the parameter list of the editor.