The StLogoffSession closes Silk Test and disconnects from the Windows Terminal Server session.
StAutomation.bdh
StLogoffSession()
transaction TMain var sUser : string; sPassword : string; begin AttributeGetString("Username", sUser); AttributeGetString("Password", sPassword); 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;