NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

overwrite testresult

in the attached sequence (TS-3.1) the operator should be able to redo a teststep, when it failed and the old result should be overwritten by the new one. However overwriting the old result in in the SequenceFilePostResultListEntry callback fails, because theTS container of the old result contains an additional element for running that callback the first time. Is there a way to make both results assignment compatible ? Just copying every element of the containers will be dependent on the step type.  
0 Kudos
Message 1 of 4
(3,411 Views)
Forgot to attach the sequence
0 Kudos
Message 2 of 4
(3,408 Views)

Markus -
The failure callback occurs before the result list callback. The result list callback can discard a result by setting the Parameters.DiscardResult property. So if the failure callback could somehow indicate that the result should be discarded, the result list callback could do this. One option would be to set the report text to "Failure Retry - Discard Result" and if the result is recorded the result list callback is called and should look for this report text literal to discard the result.

Scott Richardson
https://testeract.com
0 Kudos
Message 3 of 4
(3,403 Views)

Thanks Scott,

 I think I have a usable solution now.

0 Kudos
Message 4 of 4
(3,396 Views)