Prerequisites

Before using the SAP GUI-compatible version of NeoLoad, the following requirements must be fulfilled:

SAP Actions description

The SAP object identification described below is common to all SAP Actions.

There are two ways to identify the SAP object on which the action will be performed:

If the “objectId”, “objectName”, “objectType”, and “windowId” parameters fields are filled in, the identification by "id" is tried first.

Click

This Action simulates a click action on an SAP GUI object.

Parameters

Example

Example of a "Click" Action on a button identified by id:

objectId: ses[0]/wnd[0]/tbar[1]/btn[28]

Same example on a button identified by name:

windowId: ses[0]/wnd[0]/

objectName: btn[28]

objectType: GuiButton

Example of a "Click" Action on a tree node:

objectId: ses[0]/wnd[0]/shellcont/shell/shellcont[1]/shell

nodeKey: D.1. 1

Example of a "Click" Action on a toolbar button of a grid:

objectId: ses[0]/wnd[0]/shellcont/shell/shellcont[1]/shell

toolbarButton: BUT2

Close

This Action simulates a close action on an SAP window or an SAP dialog.

Parameters

Example

Example of a "Close" Action on the main window.

objectId: ses[0]/wnd[0]

CloseAllSessions

This Action closes all SAP sessions for the current connection.

Collapse

This Action simulates a collapse action on an SAP tree object.

Parameters

By default, this Action is not considered as as request.

Connect

This Action opens a new SAP connection. The established connection is contextual to the User Path and will be used to perform all the other Actions (Click, Press, etc.).

Parameters

The connection parameters to the SAP server must comply with the following formats:

Example

Connection of an SAP GUI client to the server 192.168.0.1:

connectionString: /H/192.168.0.1/S3201

DoubleClick

This Action simulates a double click action on an SAP object.

Parameters

Example

Example of a "Double-click" Action on the current selected cell of a grid:

objectId: ses[0]/wnd[0]/usr/cntlSINWP_CONTAINER/shellcont/shell

Expand

This Action simulates an expand action on an SAP tree object.

Parameters

Example

Example of an "Expand" Action on a tree node:

objectId: ses[0]/wnd[0]/shellcont/shell/shellcont[1]/shell

nodeKey: B.999

Press

This Action simulates a key press action on an SAP object.

Parameters

Example

Example of a “Press” Action on the “Enter” key in the SAP GUI main window:

objectId: ses[0]/wnd[0]

key: Enter

Example of a “Press” Action on the “F4” key in the current selected cell of a grid:

objectId: ses[0]/wnd[0]/usr/cntlGRID1/shellcont/shell/shellcont[1]/shell

key: F4

Read

This Action reads the label of an SAP object and returns the value in the response of the Action.

Parameters

By default, this Action is not considered as as request.

Example

Example of a "Read" Action on the text included in the SAP GUI status bar:

objectId: ses[0]/wnd[0]/sbar

RightClick

This Action simulates a right click action on an SAP object.

Parameters

Example

Example of a “Right Click” Action on the current selected cell of a grid:

objectId: ses[0]/wnd[0]/usr/cntlGRID1/shellcont/shell/shellcont[1]/shell

Select

This Action simulates a select action on an SAP radio button, check box, combo box or grid.

Parameters

By default, this Action is not considered as as request.

Examples

Example of a "Select" Action on an absolute row in a grid:

objectId: ses[0]/wnd[1]/usr/tblSAPLSKBHTC_FIELD_LIST_820

absoluteRow: 3

Example of a "Select" Action on a cell in a grid:

objectId: ses[0]/wnd[0]/usr/cntlGRID1/shellcont/shell/shellcont[1]/shell

currentCellRow: 1

currentCellColumn: INSTANCE

Example of a "Select" Action that selects multiple rows of a grid:

objectId: ses[0]/wnd[1]/usr/cntlGRID/shellcont/shell

rows: 1,2

SetText

This Action simulates a "set text" action in an SAP text field.

Parameters

By default, this Action is not considered as as request.

Example

Example of a "SetText" Action on a user name text field:

objectId: ses[0]/wnd[0]/usr/txtRSYST-BNAME

value: MyUserName

SetFocus

This Action simulates a set focus action in an SAP object.

Parameters

Example

Example of a "SetFocus" Action on a language text field:

objectId: ses[0]/wnd[0]/usr/txtRSYST-LANGU

objectName: RSYST-LANGU

objectType: GuiTextField

Unselect

This Action simulates an unselect action on an SAP table object or an SAP tree object.

Parameters

Example

Example of an "Unselect" Action that clears the selection in a tree:

objectId: ses[0]/wnd[0]/usr/cntlSINWP_CONTAINER/shellcont/shell

clear: true

IsSelected

This Action checks whether an SAP object is selected or not. The result will be returned in the response or in the optional parameter.

Parameters

Examples

Example of a "isSelected" Action on a check box:

objectId: ses[0]/wnd[1]/usr/chk130_TCODE

variable: isCheckBoxSelected

Example of a "isSelected" Action on a radio buton:

objectId: ses[0]/wnd[0]/usr/radGS_DYN310-SEL_PROJ_IMG

variable: isRadioButtonSelected

Example of a "isSelected" Action on a row of a table:

objectId: ses[0]/wnd[0]/usr/tabsCTS/tabpTAB_ATT/ssubCSS:SAPLSEOD:0252/tblSAPLSEODAC

row: 1

variable: isRowSelected

Example of a "isSelected" Action on a column of a table:

objectId: ses[0]/wnd[0]/usr/tabsCTS/tabpTAB_ATT/ssubCSS:SAPLSEOD:0252/tblSAPLSEODAC

column: 1

variable: isColumnSelected

Example of a "isSelected" Action on a cell (a check box or a radio button) of a table:

objectId: ses[0]/wnd[0]/usr/tabsCTS/tabpTAB_ATT/ssubCSS:SAPLSEOD:0252/tblSAPLSEODAC

row: 1

column: 3

variable: isCellSelected

IsObjectChangeable

This Action checks if an object is enabled and writable.

Parameters

Examples

Example of an "IsObjectChangeable" Action on a radio button:

objectId: ses[0]/wnd[0]/usr/radPPE51_1000-PDSYSDOC

Example of an "IsObjectChangeable" Action on a cell of a grid:

objectId: ses[0]/wnd[0]/usr/cntlSINWP_CONTAINER/shellcont/shell

row: 0

column: 1

IsObjectAvailable

This Action checks whether an SAP object exists or not. The result will be returned in the response or in the optional parameter.

Parameters

Example

Example of an "IsObjectAvailable" Action on a object:

objectId: ses[0]/wnd[0]/usr/pwdRSYST-BCODE

variable: isObjectAvailableVariable