Use SAP actions
Add an SAP action in a user path
Any SAP Action can be easily added in a User Path.
All the SAP Actions are quickly available in the Actions panel of NeoLoad. For more information, see SAP Actions.
Adding an SAP Action in a User Path is possible::
Right-click on a User Path element and by selecting the Insert as child command or the Insert after command. The SAP GUI Actions are listed in the pop-up menu.
Insert as child: Inserts a new SAP Action into the selected container or Transaction.
Insert after: Inserts a new SAP Action immediately after the selected element.
Drag an SAP Action from the Actions panel and dropping it on a User Path element.
Remove an SAP Action
To remove an SAP Action, use the right-click pop-up menu and select Delete or use the Remove button in the button array to the right of the User Paths tree.
Confirmation is required prior to any deletion.
Move an SAP Action
To move an SAP Action:
-
Use the button array to the right of the User Path tree. You can move the SAP Action up or down the tree using the Up and Down buttons in the button array. Use the > button to place the SAP Action in last position in the first container encountered above the SAP Action. Use the < button to place the SAP Action immediately after its parent.
-
Drag and drop. When dropping, there are three target zones: the top zone indicates that the moved element will be inserted above the target element; the middle zone indicates that the moved element will be inserted inside the target element; and the bottom zone indicates that the moved element will be inserted below the target element.
When over the middle zone, the target element is only highlighted if insertion is allowed. In the case of the top or bottom zone, a hyphen is displayed to show that the insertion is allowed.
SAP Actions response codes
Below are listed the error codes sent when an error occurs during the execution of an SAP Action.
NL-SAP_CONNECT-01: There was an issue trying to connect to SAP GUI.
NL-SAP_ACTION-01: There was an issue parsing the parameters.
NL-SAP_ACTION-02: The connection to the SAP GUI client was not found.
NL-SAP_ACTION-03: The SAP object was not found (either by "id" or by "name").
NL-SAP_ACTION-04: The type of the SAP object is not supported by the Actions.
NL-SAP_ACTION-05: There was an error while performing the SAP Action.
SAP API mapping table
The table below identifies the mapping between the SAP scripting API methods and NeoLoad Actions.
SAP scripting API method | NeoLoad Action |
---|---|
ApoGrid_clearSelection | Not supported |
ApoGrid_deselectCell | Not supported |
ApoGrid_deselectColumn | Not supported |
ApoGrid_deselectRow | Not supported |
ApoGrid_doubleClickCell | Not supported |
ApoGrid_getCellValue | Not supported |
ApoGrid_getCellFormat | Not supported |
ApoGrid_getCellTooltip | Not supported |
ApoGrid_getChangeable | Not supported |
ApoGrid_getCurrentContextMenu | Not supported |
ApoGrid_pressEnter | Not supported |
ApoGrid_firstVisibleColumn | Not supported |
ApoGrid_firstVisibleRow | Not supported |
ApoGrid_selectAll | Not supported |
ApoGrid_selectCell | Not supported |
ApoGrid_selectColumn | Not supported |
ApoGrid_selectContextMenuItem | Not supported |
ApoGrid_selectRow | Not supported |
ApoGrid_setCellValue | Not supported |
Calendar_focusDate | Not supported |
Calendar_firstVisibleDate | Not supported |
Calendar_selectionInterval | Not supported |
Component_text | Read |
Grid_clearSelection | Unselect |
Grid_click | Click |
Grid_clickCurrentCell | Click |
Grid_deselectColumn | Select with parameter "optionValue" to "false" |
Grid_doubleClick | DoubleClick |
Grid_doubleClickCurrentCell | DoubleClick |
Grid_setText | SetText |
Grid_getCellValue | Read |
Grid_getColumnCount | Not supported |
Grid_getCurrentCellColumn | Not supported |
Grid_getCurrentCellRow | Not supported |
Grid_getRowCount | Not supported |
Grid_getCellCheckBoxChecked | IsSelected |
Grid_contextMenu | RightClick |
Grid_pressButton | Not supported |
Grid_pressButtonCurrentCell | Not supported |
Grid_pressColumnHeader | Select with parameter "pressColumnHeader" to "true" |
Grid_pressEnter | Press with parameter "key" to "ENTER" |
Grid_pressF1 | Press with parameter "key" to "F1" |
Grid_pressF4 | Press with parameter "key" to "F4" |
Grid_pressToolbarButton | Click with parameter "toolbarButton" to "true" |
Grid_pressToolbarContextButton | Click with parameter "toolbarContextButton" to "true" |
Grid_pressTotalRow | Not supported |
Grid_pressTotalRowCurrentCell | Not supported |
Grid_setFirstVisibleRow | Not supported |
Grid_selectAll | Select with parameter "all" to "true" |
Grid_setCurrentCell | Select with parameter "currentCellRow" and "currentCellColumn" |
Grid_setCurrentCellColumn | Not supported |
Grid_setCurrentCellRow | Not supported |
Grid_setSelectedCells | Not supported |
Grid_selectColumn | Select with parameter "column" |
Grid_setSelectedColumns | Not supported |
Grid_selectContextMenuItem | Click with parameter "contextButton" |
Grid_setSelectedRows | Select with parameter "rows" |
Grid_selectToolbarMenuItem | Click with parameter "menuItem" |
Grid_selectionChanged | Select with parameter "selectionChanged" |
Grid_modifyCell | SetText |
Grid_modifyCheckBox | Not supported |
Grid_setColumnOrder | Not supported |
Grid_setColumnWidth | Not supported |
HTMLViewer_event | Not supported |
CheckBox_selected | IsSelected |
Component_changeable | IsChangeable |
RadioButton_selected | IsSelected |
TabbedPane_getSelectedTab | IsSelected |
Application_openConnectionByConnectionString | Connect |
Button_press | Click |
Session_activeWindow | Not supported |
ComboBox_setKey | Select |
Menu_select | Click |
RadioButton_select | Select |
Tab_select | Click |
Window_sendVKey | Press |
CheckBox_setSelected | Select |
Component_setFocus | Focus |
PasswordField_setText | SetText |
Component_setText | SetText |
Statusbar_getText | Read |
Statusbar_getType | Read |
TableControl_setText | Not supported |
TableColumn_getWidth | Not supported |
TableControl_getText | Not supported |
TableColumn_getSelected | IsSelected |
TableRow_getSelected | IsSelected |
TableColumn_setSelected | Not supported |
TableColumn_setWidth | Not supported |
TableControl_setFocus | Focus |
TableRow_setSelected | Select with parameter "absoluteRow" |
TableControl_setText | Not supported |
TableControl_setText | Not supported |
TextEdit_doubleClick | Not supported |
TextEdit_getFirstVisibleLine | Not supported |
TextEdit_getNumberOfUnprotectedTextParts | Not supported |
TextEdit_getSelectionIndexStart | Not supported |
TextEdit_getSelectionIndexEnd | Not supported |
TextEdit_modifiedStatusChanged | Not supported |
TextEdit_multipleFilesDropped | Not supported |
TextEdit_contextMenu | Not supported |
TextEdit_pressF1 | Not supported |
TextEdit_pressF4 | Not supported |
TextEdit_setFirstVisibleLine | Not supported |
TextEdit_selectContextMenuItem | Not supported |
TextEdit_setSelectionIndexes | Select with parameters "start" and "end" |
TextEdit_setUnprotectedTextPart | Not supported |
TextEdit_singleFileDropped | Not supported |
Toolbar_pressButton | Click with parameter "toolbarButton" |
Toolbar_pressContextButton | Click with parameter "contextButton" |
Toolbar_selectContextMenuItem | Not supported |
Toolbar_selectContextMenuItemByText | Not supported |
Toolbar_selectMenuItem | Click with parameter "menuItem" |
Toolbar_selectMenuItemByText | Not supported |
Tree_clickLink | Click with parameters "nodeKey" and "itemName" |
Tree_collapseNode | Not supported |
Tree_doubleClickItem | DoubleClick with parameters "nodeKey" and "itemName" |
Tree_doubleClickNode | DoubleClick with parameter "nodeKey" |
Tree_expandNode | Expand |
Tree_getItemText | Not supported |
Tree_getNodeTextByKey | Not supported |
Tree_getCheckBoxState | IsSelected |
Tree_defaultContextMenu | Not supported |
Tree_headerContextMenu | Not supported |
Tree_itemContextMenu | RightClick with parameters "nodeKey" and "itemName" |
Tree_nodeContextMenu | RightClick with parameter "nodeKey" |
Tree_pressButton | Click with parameter "buttonPress" at "true" |
Tree_pressHeader | Not supported |
Tree_pressKey | Press |
Tree_setTopNode | Not supported |
Tree_ensureVisibleHorizontalItem | Not supported |
Tree_selectColumn | Not supported |
Tree_selectContextMenuItem | Click with parameter "menuItem" |
Tree_selectItem | Click with parameters "nodeKey" and "itemName" |
Tree_selectNode | Click with parameter "nodeKey" |
Tree_changeCheckbox | Not supported |
Tree_setColumnOrder | Not supported |
Tree_setColumnWidth | Not supported |
Tree_setHierarchyHeaderWidth | Not supported |
Tree_setSelectedNode | Click with parameter "nodeKey" |
Tree_unselectAll | Unselect with parameter "clear" at "true" |
Tree_unselectColumn | Not supported |
Tree_unselectNode | Unselect |
Window_close | Close |
Window_maximize | Not supported |
Window_setWidth Window_setHeight | Not supported |
Window_restore | Not supported |