TestedApplication
Methods:
ClearAccumulatedPerformanceIndicators
Connect
Disconnect
FindObject
FindObjects
FinishUILogRecording
GetAccumulatedPerformanceIndicators
GetActiveWindow
GetChildObjects
GetCurrentErrorInfo
GetObject
PauseUILogRecording
ResumeUILogRecording
SetFileDialogResult
StartUILogRecording
WaitForObjectDisplayed
Constructors:
Description:
The test client that is started as the test manager can establish connection to the application being tested.
A client connected to any infobase can be tested, as well as a client connected to the same infobase as the test manager.
This object is accessible if the application that runs the script is started with /TESTMANAGER command-line option.
The tested application must be started with /TESTCLIENT [-TPort<Port>] command-line option.
The default port number is 1538.
Availability:
Example:
NewTestable = New TestedApplication("127.0.0.1", , ); // Attempt to connect for no longer than a minute EndWaitingTime = CurrentDate() + 60; Connected = False; While Not CurrentDate() >= EndWaitingTime Do Try NewTestable.Connect(); Connected = True; Abort; Except EndTry; EndDo; If Not Connected Then // Finishing test NewTestable = Undefined; Message("The connection can not be established!"); EndIf; |