SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

Discarding skipped result doesn't work

Solved!
Go to solution

Hi i modified the SequenceFilePostResultListEntry to discard any skipped step. While it does work with other form of report, Testmonitor doesn't seem to care. I think they forgot to implement it. Is ther any work around.

0 Kudos
Message 1 of 4
(1,401 Views)
Solution
Accepted by topic author HVW

SequenceFilePostResultListEntry is an older callback that does not seem to support discarding results for OTF plugins. I presume TestMonitor is being used in OTF mode, correct?

 

Instead of SequenceFilePostResultListEntry, can you instead use SequenceFilePostResults and add the following in a statement step: SetNumElements(Parameters.Results, 0)?

Message 2 of 4
(1,356 Views)

TestMonitor uses OnTheFly, yes. I verified that if you modify Parameters.Results in SequenceFilePostResults that change will be applied to the results sent to TestMonitor.

 

One note of caution: the TestMonitor plugin to TestStand sends result data to SystemLink even if the steps or sequence is not complete (i.e. in the Running state). If you remove a result that had already been reported in this intermediate state then it will be stuck in that state in SystemLink. If you're going to remove results from Parameters.Results you should only due so when you are confident that it hasn't and will not be reported to SystemLink in a prior or later run of SequenceFilePostResults, to avoid stale or inconsistent data being persisted on the server.

 

In you case with skipped results, you would want to avoid removing results that were manually set to the Skipped status within the step's expression, because they could have been previously been reported as Running and would be stuck in that state.

 

Message 3 of 4
(1,352 Views)

Thanks i figured out that myself at the end and added the statement:

RunState.Execution.MaximumResultsPerPostResultsCallback=1

and filtered the data in the sequenceFilePostResults.

I couldn't wrap my head over the whole reporting system and how it works but doing this seems to work. Does it seems ok to you. 

0 Kudos
Message 4 of 4
(1,329 Views)