SystemLink Displays Test Results as "Running" After Terminating Sequence in Teststand

Updated Mar 15, 2022

Reported In

Software

  • TestStand
  • SystemLink
  • SystemLink Test Module

Issue Details

I use the NI SystemLink Test Monitor Client model plugin to upload TestStand results to SystemLink. While running sequences in TestStand, I occasionally need to press the Terminate button. If I repeatedly press it (a double-click, for example) the sequence results show up as "Running" on SystemLink, even though TestStand has finished the execution on the test system. After 24h hours the Status on SystemLink changes to "Timed Out".

Test results have the

That represents an inconsistency in my test results. How can I prevent this from happening?

Solution

That is a known behavior related to clicking the Terminate button several times in a short period of time. To avoid this behavior, click the Terminate button only once and wait for TestStand to finish its pending tasks before closing the execution window.
 
Pressing the Terminate button once seems will work as expected and you will be able to see the sequence status as "Terminated" on SystemLink.


 

 

Additional Information

When you terminate while running a sequence from Test UUTs or Single Pass, the process model prevents the entire execution from terminating so that the process model can log results and continue to the next UUT. It does this by setting the Ignore Termination property on the MainSequence Callback step to True. After execution returns from the MainSequence callback, the process model might process results or display a status dialog like the "Test Sequence Terminated" message box. If you terminate again while it is back in the process model, this time you are terminating the model. Depending on where you are in the model, some things might not get done. However, you need to be able to terminate or you would be stuck in the model.