NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip sequence call step result recording in teststand

Hi,

 

I am having a sequence call in one of my sequences and want to disable the step recording only for this step. But the steps present in the sequence call need to work as per their step "Record Result" option.

 

I tried unchecking the "Record Result" option available for the sequence call. this is causing disabling the record of results for all of the steps present in that particular sequence irrespective of the status of the individual steps present the sequence.

 

Pl guide me in this regard. 

Message 1 of 12
(7,253 Views)

The results for steps in a subsequence are attached to the results of the sequence call after the sequence is done running. If you disable results on the sequence call then the results of the subsequence it calls are discarded after it's done running. The resultlist is basically a tree structure with sequence call results being branches.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 12
(7,243 Views)

This is not possible because the result list of the subsequence is part of the result container from the sequence call step. So you need the result of the sequence call in order to know the results of the subsequence.

You can, nevertheless, change the reporting mechanism "to drop the entry for the sequence call step".

You can find additional information on customizing reports here.

 

hope this helps,
Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 3 of 12
(7,243 Views)

I have the same problem. Could you tell me what is the meaning: "You can, nevertheless, change the reporting mechanism "to drop the entry for the sequence call step".". How to drop the entry for the sequence call step?

0 Kudos
Message 4 of 12
(6,856 Views)

did you check out the link from Norbert, especially the section "Filtering the ResultList".

 

 

Regards
Ray Farmer
0 Kudos
Message 5 of 12
(6,852 Views)

Thank you for your answer. But I cannot find any helpful things from that link. Are there some examples and details about "drop the entry for the sequence call step"?

 

Again, my problem is I want to skip the sequence call step result in result report but keep the steps results that present in the sequence call.

0 Kudos
Message 6 of 12
(6,840 Views)

Since the complete ResultList from the subsequence is part of the SequenceCall step, you cannot delete the SequenceCall step result from the ResultList (local variable from the calling sequence) but expect TestStand to keep the ResultList from the subsequence...

So if my understanding from your request is correct, you cannot do what you are up to...

 

The only possible way for this is to adopt the mechanism of the report generation (leaving the ResultList as-is).

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 7 of 12
(6,832 Views)

You need to use the Callback Sequence SequenceFilePostResultListEntry and set the DiscardResult TRUE if the Step is a SequenceCall type. But I think this will remove all the results from the SequenceCall not just the SequenceCall Step result.

 

Therefore you probably will have to use the ModifyResultBody callback to remove the SequenceCall step result from the Report Text.

 

 

Regards
Ray Farmer
0 Kudos
Message 8 of 12
(6,830 Views)

I have tryed the first way, and alll the results from the SequenceCall do removed.

 

The second way, I do not kown how to modify the ModifyResultBody to remove the SequenceCall step result.

0 Kudos
Message 9 of 12
(6,827 Views)

I think that your request is not such simple. The problem you are facing is that the SequenceCall step is embedded into the report in a special way. If you take a close look into the mechanism of reporting (as guided in the quoted article), you will see that the SequenceCall takes a special position: It does generate indenting for most report formats (for instance) and some more things.

So simply deleting the string representing the SequenceCall step is possible, but what do you do with indenting? What about formatting of the subsequences' results?

 

To be plain: It is possible to do as you like, but you will have to dig into the default reporting mechanism and replace certain parts with your own custom components. That will be some development effort.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 10 of 12
(6,821 Views)