StResetSilkTest closes Silk Test and then restarts it. In addition to resetting Silk Test, it is also possible to reset the session.
StAutomation.bdh
StResetSilkTest( in bResetConnection : boolean optional ): boolean;
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. |
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;