TestStand Runtime Errors: Issues with Cleanup Group Execution

Updated Jun 15, 2026

Reported In

Software

  • TestStand

Issue Details

When a runtime error occurs in TestStand, the user is prompted with execution options (e.g., Continue, Ignore, etc.). After selecting the "Run Cleanup" option, TestStand proceeds to the Cleanup group. However, some steps within the Cleanup group may be skipped, even though no errors are associated with those steps.


 

Solution

The issue is caused by the asynchronous nature of certain sequence executions in TestStand. To resolve this behavior, it is recommended to explicitly refresh the TestStand UI state before executing the Cleanup steps.

Add the following statement as the first step in the Cleanup group:

RunState.Thread.PostUIMessageEx(UImsg_RefreshWindows,0, "", Nothing, True)