Forum Discussion
AlexanderLinkov
Alumni
11 years agoHello,
You can do as Nebti Nassim said, and, also, you can use an event handler for the OnLogError event. This event handler receives the LogParams object. Its MessageText property allows you to determine the error. So, when the specific error occurs, use the Runner.Stop method to stop the test execution. In other cases, the test continues to run. Using this approach, make sure that you disable "Stop on Error" options in the project's properties.
This method is described in detail in the "Stopping Current Test Item After Only Specific Errors" topic.