NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
To do this you can write functions that override some of the default behaviour of the recovery system. The default recovery system is implemented through several functions.
DefaultBaseState: Restores the default base state, then calls the application s BaseState function, if defined.
DefaultScriptEnter: Executed when a script file is first accessed. Default action: none.
DefaultScriptExit: Executed when a script file is exited. Default action: Call the ExceptLog function if the script had errors.
DefaultTestCaseEnter: Executed when a testcase is about to start. Default action: Set the application state.
DefaultTestCaseExit: Executed when a testcase has ended. Default action: Call the ExceptLog function if the script had errors, then set the base state.
DefaultTestPlanEnter: Executed when a test plan is entered. Default action: none.
DefaultTestPlanExit: Executed when a test plan is exited. Default action: none.
To override these default functions, define the following:
If ScriptEnter, ScriptExit, TestcaseEnter, TestcaseExit, TestPlanEnter or TestPlanExit are defined, SilkTest uses them instead of the corresponding default function.