NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

override sequence setting

Run Options Property, Result Recording Option is set to Enabled "override sequence setting)". This does not appear to override the sequence Result Recording Option. The sequence Option still persist. What am I missing here. The Station is set to generate report on the fly.

 

I really want to remove or keep out the Sequence header lines created in the report. Steps in the sequence need to generate the report.

Rich J

0 Kudos
Message 1 of 15
(3,392 Views)

Instructions say override should work when the sequence property RunState.Sequence.DisableResults==True . Where should this property be set, Pre Post or what where...

0 Kudos
Message 2 of 15
(3,387 Views)

Is this in the main sequence, or is this in a subsequence?

 

If you want to record a result from inside a subsequence the call to the subsequence also need to be recorded. 

And it is also so that if you set the sequence result recording option it will only work for the steps inside the sequence. If the sequence is called as a subsequence the logging of the step which executes the call to the subsequence will be dependant on the calling sequences setting.

 

(As i have understood it.)

0 Kudos
Message 3 of 15
(3,308 Views)

This is a subsequence executing steps. So if I understand what your saying, a subsequence must be recorded to the test report. This leaves a header in the test report that I'm trying to not show. (I didn't author the TS code but I'm making edits attempting to clean up the test report).

 

No work around for not reporting the subsequence while reporting the step test result?

0 Kudos
Message 4 of 15
(3,289 Views)

That is correct, you will get a header for the subsequence.

Teststand adds the complete dataset collected in the subsequences Locals.Resultlist as step result in the main sequence Locals.Resultslist only if "Result Record Option" for the caller step is enabled.

It seems that it is possible to do a simple trick with setting Locals.Resultlist to be the same as the caller Locals.Resultlist at the beginning of the subsequence and the other way around at the end.

Attached is a sequence containing a subsequence in which this functionality is possible to enable and disable. It seems to work, but no guarantees on how stable it is.


A couple of older threads which may give leads to other solutions.
https://forums.ni.com/t5/NI-TestStand/How-to-eliminate-an-instance-of-quot-entering-a-sequence-call/...
https://forums.ni.com/t5/forums/forumtopicpage/board-id/330/message-id/28872/agent-type/internal-cra...

0 Kudos
Message 5 of 15
(3,201 Views)

RolfO, if I set SeqCall1 to True DoAddToCallerResultList, I still get the indentation for step results in the report. 

 

I also see from your links, the Sequence results are programmatically tied to the step results. What I don't follow is the TS result Recording Option "Enabled (override sequence setting)" that never works. When is this feature valid? It appears never.

 

I'm thinking another work around is to disable the indentation from the StyleSheet. There are instructions in help to "Add Sequence Call step results to reports without indentation".

0 Kudos
Message 6 of 15
(3,098 Views)


Thanks for the feedback. As i mentioned, no guarantees, but it is still of interest to get information if it works or not.

You can disable "Result recording " for all test steps for a sequence by editing sequence properties (Edit->Sequence properties). In that dialog box it is possible to "Disable Result Recording for All Steps" by enabling the checkbox. Then for each seperate step in the sequence you can force it to disregard that common setting by setting "Result Recording Option" to "Enabled (override sequence setting)".

If you set SeqCall1 to True DoAddCalllerResultList i would expect you to get the results from that subsequence twice, not indented and indented. 

How is the results for SeqCall 2 presented in your log, are they indented or not, or are they not present at all?

You need to use "DoAddCallerResultList" and "Result Recording Option" in the correct combination.

 

Use "Test: A",  "Test: B" and  "Test: C" as a help to see how many lines SeqCall1 and SeqCall2 inserts in the result.


0 Kudos
Message 7 of 15
(3,085 Views)

Set Seq 1 and Seq 2 to True, I get this for the Report, notice Seq 1 steps indent persist.

Steps Results are indentation persistSteps Results are indentation persist

 

I'll try to modify the horizontal.xsl file to remove indentation, but currently I'm getting an error even after reverting to original file. https://forums.ni.com/t5/NI-TestStand/unable-to-load-xml-report-at-line-1-invalid-at-the-top-level-o... .

0 Kudos
Message 8 of 15
(3,080 Views)

I use TestStand 2012. It may be TestStand collects testresults differently in your version of TestStand. I have attached html result from my test of this.

.Log_Subsequence.PNG.

My test is also to simple and i did not test it fully. If i set the value DoAddToCallerResultList to true in call "SeqCall 1" logging of testresults crashes.

TestStand 2012 collects testresults in the Local variable Locals.Resultslist which is present in sequences/subsequences and my sequence exploit that. If an original new sequence in your TestStand version does not contain that variable my sequence will not work. But it may give you some ideas if you find out how testresults is collected in your TestStand version.

For me this have been useful, i now know that my solution may not be forward compatible. But i am sorry if i have given you to much uneccessery work by testing my solution/suggestion

0 Kudos
Message 9 of 15
(3,061 Views)

@RolfO wrote:


You can disable "Result recording " for all test steps for a sequence by editing sequence properties (Edit->Sequence properties). In that dialog box it is possible to "Disable Result Recording for All Steps" by enabling the checkbox. Then for each seperate step in the sequence you can force it to disregard that common setting by setting "Result Recording Option" to "Enabled (override sequence setting)".





Thanks for the response, I noticed for a sequence, the sequence setting always overrides the steps regardless of the step(s) being set to Record Results Enabled "override sequence setting".

 

Editing the horizontal.xsl file by changing gIndentTables from True to False, 2 lines found, doesn't work either. I'm wondering if the TS needs to be saved or restarted for the new horizontal.xsl file to take effect. On the fly reporting show error loading until the test is completed Result file load in the TS Result Tab.

0 Kudos
Message 10 of 15
(3,044 Views)