StResetSilkTest Function

Action

StResetSilkTest closes Silk Test and then restarts it. In addition to resetting Silk Test, it is also possible to reset the session.

Include file

StAutomation.bdh

Syntax

StResetSilkTest( in bResetConnection : boolean optional ): boolean;

Return value

  • true if reset worked

  • false otherwise

Parameter Description
bResetConnection If bResetConnection is set to true, the session will be closed and reopened using the same settings. Optionally, only Silk Test can be reset.

Example

transaction TInit
var
  sUser     : string;
  sPassword : string;
begin
  AttributeGetString("Username", sUser);
  AttributeGetString("Password", sPassword);
  StInitSession(sUser, sPassword);
end TInit;

transaction TMain
begin
  StLoadProject("package.stp");
  StSetOption(ST_OPTION_TRUELOG_OPTIONS, ST_TRUELOG_ALL);
  StExecuteTestcase("scriptFile.t", "testcase", "\" testdata\",10", "MyTimer1");
  StResetSilkTest(true);
end TMain;