Exception Handling

The goal in exception handling is to catch all exceptions in your test code. That is why after creating a project, the default code has try/catch blocks in each test method.

The Silk Performer .NET Framework throws one exception, the SilkPerformer.StopException. The framework throws this exception when a run is aborted or stopped by the user. You can utilize this exception for clean up.

Other exceptions are handled normally. For detailed exception information in your TrueLogs, use Bdl.LogException to log exceptions, including message and stack trace, to TrueLog. This is particularly useful when running tests while TrueLog On Error is activate, because you can see which exceptions are thrown and you get a complete stack trace.