This function verifies the row of the current cell of a SapGui grid control.
SapGui.bdh
SapGuiVerifyGridCheckboxChecked( in sControlId : string, in nRow : number, in sCol : string, in bChecked : boolean, in nOptions : number optional, in nSeverity : number optional := SEVERITY_ERROR ) : boolean;
Parameter | Description |
---|---|
sControlId | The unique id of the table. |
nRow | The row of the cell to be verified. |
sCol | The column of the cell to be verified. |
bChecked | Value to be compared according to the rules specified in the 'nOptions' parameter. |
nOptions |
This parameter specifies the type of check to be performed. Available options are:
|
nSeverity |
Optional: Severity of the error that is raised if the verification fails. Can be one of the following values:
|
transaction TMain
var
sConnID : string;
begin
// Connecting to SAP
sConnID := SapGuiOpenConnection( " /SAP_CODEPAGE=1100 /FULLMENU 10.5.2.132 0 /3");
SapGuiSetActiveConnection(sConnID);
SapGuiSetActiveSession("ses[0]");
// SAP
SapGuiSetActiveWindow("wnd[0]", "SAP", SAPGUI_MATCH_ExactNoCase);
SapGuiWindowAction(SAPGUI_WND_MAXIMIZE);
// Logon to SAP System
// Before running a test you have to customize the password parameter!
ThinkTime(2.3);
SapGuiLogon("ddic", "*******", "000", "");
// SAP Easy Access
SapGuiIgnoreError(SAPENGINE_STATUSBAR_CHANGED, SEVERITY_SUCCESS);
SapGuiSetActiveWindow("wnd[0]", "SAP Easy Access", SAPGUI_MATCH_ExactNoCase);
// NodeName: Workplace: DDIC
// NodePath: 1
SapGuiSelectTopNode( "usr/cntlSINWP_CONTAINER/shellcont/shell/shellcont[0]/shell", "Workplace: DDIC", " 1", "TopNode\\Workplace: DDIC");
ThinkTime(16.8);
SapGuiGridSelectCell( "usr/cntlSINWP_CONTAINER/shellcont/shell/shellcont[1]/shell/shellcont[0]/shell", 1, "OBJDES");
SapGuiVerifyGridCheckboxChecked ( "usr/cntlSINWP_CONTAINER/shellcont/shell/shellcont[1]/shell/shellcont[0]/shell", 1, "OBJDES", true, SAPGUI_VERIFY_EQUAL, SEVERITY_ERROR);
end TMain;