Forum Discussion

joel_johnson's avatar
joel_johnson
Occasional Contributor
12 years ago

Set checkpoint errors to not stop tests but other errors to stop them

Hi,

I am using Keyword testing.  I would like for my checkpoint errors to allow the tests in my project to continue running, and would like my other errors to cause them to stop running.  I want to be able to do this without having to edit many individual tests.  How can this be done?

3 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Joel,


     


    There are many ways to accomplish your task:


    1. You can write the OnLogCheckpoint event handler and make TestComplete post to the test log your own warning/message.


    2. You can disable the Stop on error project project option. In this case, TestComplete won't stop the test execution when an error is posted to the test log. To stop the test in any place you want, you can use the Runner.Stop method.

  • joel_johnson's avatar
    joel_johnson
    Occasional Contributor
    How do I do option 1 with the OnLogCheckpoint event handler?  I can't figure it out