NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
If your Silk Test Classic Test Plans consist of test cases that are dependent on the previous test case passing you may wish to stop the Test Plans from executing further if a test case fails.
We can achieve this by overwriting the DefaultTestCaseExit() statement by creating a TestCaseExit() method at the top of an include file. When a testcase encounters an error our method TestCaseExit() will be called. Within our TestCaseExit method we can use the command @("$StopRunning") to terminate the execution of the remaining tests.
TestCaseExit (BOOLEAN bException) if (bException) @("$StopRunning")() ExceptLog()