TestedApplication

Methods:

CancelUILogRecording
ClearAccumulatedPerformanceIndicators
Connect
Disconnect
FindObject
FindObjects
FinishUILogRecording
GetAccumulatedPerformanceIndicators
GetActiveWindow
GetChildObjects
GetCurrentErrorInfo
GetObject
PauseUILogRecording
ResumeUILogRecording
SetFileDialogResult
StartUILogRecording
WaitForObjectDisplayed

Constructors:

Main

Description:

Allows to establish connection to a test client. The test client can be started either from the script (using RunSystem or RunApp methods), or in any other convenient way.
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:

Thin client, thick client.

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
;


    

1C:Enterprise Developer's Community