Forum Discussion

mcaramto's avatar
mcaramto
Occasional Contributor
1 day ago

Playback - On Error: Stop and Rerun Current Items Not Working.

Hello, can someone help me why Stop and Rerun Current Items on Errors is not working as before. When an error occurs, it is now continuing to run the whole test and then rerunning it, instead of stopping and then rerunning it. This is causing the execution to run very long and its very inconvenient. 

I have checked that my execution plan is using "Use project's On Error property" and that my project setting is set to "Stop and Rerun Current Items" when an error occurs. 

I have reinstalled test complete and it's still the same, how can I fix this? 

2 Replies

  • A common reason “Stop and Rerun Current Items” doesn’t behave as expected is configuration rather than a tool fault. Make sure of the following settings:

    1. Confirm the Playback > Error handling > On error property in Project Properties is set to Stop and rerun current item and that the Rerun failed test items count is configured. See the TestComplete docs here:
      https://support.smartbear.com/testcomplete/docs/testing-with/running/control-test-flow/stop-and-rerun.html (SmartBear Support)
    2. In the Execution Plan, verify each test item’s On error column is either set to Use project’s ‘On error’ property or explicitly to Stop and rerun current item. The test item setting takes precedence over the project default. See the property reference here:
      https://support.smartbear.com/testcomplete/docs/reference/project-objects/project/testitem/stoponerror.html (SmartBear Support)
    3. Check the overall Playback > Error handling > On error option under Current Project Properties to ensure it matches your intended behavior (Stop and rerun). That option controls what TestComplete does when an error is posted to the log. See the playback settings here:
      https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.html (SmartBear Support)

    If all three are aligned and the behavior is still not as expected, it can help to isolate with a small test project to verify these values are actually being applied at runtime.

    If this resolves your scenario, marking it as the solution helps future readers find it quickly.

  • scot1967's avatar
    scot1967
    Icon for Champion Level 3 rankChampion Level 3

    Hello mcaramto,

    I see ...

    • "Use project's On Error property" ✅
    • "Stop and Rerun Current Items" ✅


    Have you verified "Stop and Rerun Current Items" in both Current and Default Project PlayBack properties? This could also be resolved by Try Catch implementation.  Do you have that in place? Last, when did this begin?  Background would help us such as any recent updates, your current version and the language you are using for your scripts or are you keyword testing?

    I hope we can help!

    ... If you find my posts helpful drop me a Like👍 Be sure to mark the post as the Solution✅ when you get one to help others out and to credit the one who helped you. 😎