StSetConnectionTimeOut Function

Action

Sets a timeout for connection to a Windows Terminal Server session.

Include file

StAutomation.bdh

Syntax

StSetConnectionTimeOut( in nTimeOut : number );
Parameter Description
nTimeOut Connection timeout in seconds. Null means unlimited timeout.

Example

transaction TMain
var
  sUser     : string;
  sPassword : string;
begin
  AttributeGetString("Username", sUser);
  AttributeGetString("Password", sPassword);
  StSetConnectionTimeOut(60000);
  if (StInitSession(sUser, sPassword)) then
    StLoadProject("package.stp");
    StSetOption(ST_OPTION_TRUELOG_OPTIONS, ST_TRUELOG_ALL);
    StExecuteTestcase("scriptFile.t", "testcase", "\" testdata\",10", "MyTimer1");
    StLogoffSession();
  end;
end TMain;