Test Design StudioGo to Previous Topic: CA0118 - Avoid unused variablesGo to Next Topic: CA1044 - Properties should not be write only

CA0121 - Use error handling with caution

Summary

VBScript provides the statement 'On Error Resume Next' to allow script execution to continue uninterrupted when an error is encountered. This can be a powerful statement, but can also lead to undesired consequences if not used properly.

Solution

Any use of 'On Error Resume Next' should be made with a clear understanding of the statement and what it does. If you do not need the statement, remove it. Otherwise, the warning can be removed by suppressing it and providing a reason for why the statement must be used.