Differences in the Parameters Supported by the Silk Test Agents

The Classic Agent and the Open Agent differ slightly in the function parameters that they support. These differences are important if you want to manually script your test cases. Or, if you are testing a single test environment with both the Classic Agent and the Open Agent. Otherwise, the Open Agent provides the majority of the same record capabilities as the Classic Agent and the same replay capabilities.

For some parameters, the Open Agent uses a hard-coded default value internally. If one of these parameters is set in a 4Test script, the Open Agent ignores the value and uses the value listed here.

Function Parameter Classic Agent Value Open Agent Value
AnyWin::PressKeys/ReleaseKeys nDelay Any number. 0
AnyWin::PressKeys/ReleaseKeys sKeys More than one key is supported. Only one key is supported. The first key is used and the remaining keys are ignored. For example MainWin.PressKeys("<Shift><Left>") will only press the Shift key. To press both keys, specify MainWin.PressKeys("<Shift>") MainWin.PressKeys("<Left >").
AnyWin::TypeKeys sEvents Keystrokes to type or mouse buttons to press. The Open Agent supports keystrokes only.
AnyWin::GetChildren bInvisible TRUE or FALSE. FALSE.
AnyWin::GetChildren bNoTopLevel TRUE or FALSE. FALSE.
TextField::GetFontName iLine The Classic Agent recognizes this parameter. The Open Agent ignores this parameter.
AnyWin::GetCaption bNoStaticText TRUE or FALSE. FALSE.

AnyWin::GetCaption,

Control::GetPriorStatic

bRawMode TRUE or FALSE. FALSE. However, the returned strings include trailing and leading spaces, but ellipses, accelerators, and hot keys are removed.

PageList::GetContents/

GetPageName

bRawMode TRUE or FALSE. FALSE. However, the returned strings include trailing and leading spaces, ellipses, and hot keys but accelerators are removed.

AnyWin::Click/

DoubleClick/

MoveMouse/ MultiClick/

PressMouse/

ReleaseMouse,

PushButton::Click

bRawEvent The Classic Agent recognizes this parameter. The Open Agent ignores this value.