NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify ResultList array?

How to modify test result of a sequence step.  I am calling "SequenceCall" several times with unique parameters for each call.  I want to post the unique data to the report file.  I would like to do this in one place that the "SequenceCall" can be setup to process the ResultList each time it runs.  I have tried "SequenceFilePostResultsListEntry", but the ResultList array is not available at that point.  The data I would like to update can be seen in the ResultList array found in the process model during the call to TestReport.  I can also see this in the Result list after the "SequenceCall" , but can not find a Callback that will allow me to edit this data before the "SequenceCall"  is exited.  Any ideas on how to do this?  Also, please comment on possible test time implications.
0 Kudos
Message 1 of 11
(4,520 Views)

Hi,

 

What is it that you want to change that you cannot do by passing the results from the SequenceCall or even in the SequenceFilePostResultListEntry callback?

 

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 11
(4,521 Views)
I am trying to update Locals.ResultList[0].TS.StepName.  If I can not do this, the how do I add info to the results?
0 Kudos
Message 3 of 11
(4,519 Views)

Hi,

 

In SequenceFilePostResultListEntry callback you can modify Paramaters.Result.TS.StepName. This is then passed back into Locals.ResultList and the change StepName will be seen in the Report.

 

eg

Parameters.Result.TS.StepName = Parameters.Result.TS.StepName + " " + Str(FileGlobals.count), FileGlobals.count++

 

Hope this helps

Regards

Ray Farmer

Message Edited by Ray Farmer on 08-18-2008 08:45 PM
Regards
Ray Farmer
0 Kudos
Message 4 of 11
(4,517 Views)
Parameters.Result.TS.StepName does not work.  This is the name of the step added to "SequenceFilePostResultsListEntry". 
0 Kudos
Message 5 of 11
(4,512 Views)

Hi,

 

Then I must be missing something from you original question because if I modifiy Parameters.Result.TS.StepName  in SequenceFilePostResultsListEntry then this modifies the ResultList.Result.TS.StepName in your SequenceCall and hence the StepName seen in the Report.

Can you supply a simply example highlighting what you are trying to achieve.

 

I hope we can resolve this for you.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 6 of 11
(4,497 Views)

Hi

 

There is an other solution you should try.

http://forums.ni.com/ni/board/message?board.id=330&message.id=17841&query.id=42517#M17841

 

Just check the example

 

Greetings

 

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 7 of 11
(4,493 Views)
I have attached a sample sequence file.  What I would like to do is send the test description to the report file.  The goal is to do this without adding more sequence steps after the call to the sub sequence.  So in the sample "Call Testit in <Current File>" would be written to the report file.  If I were to add more Sequence calls, then their description would be reported as well (without any additional changes to the sequence).  Changes could be made in the process model or the Typesdefs.
0 Kudos
Message 8 of 11
(4,473 Views)

Hi,

Attached is part of the report generated with the statement step unskipped and I see that the Step Description is changed for the SequenceCall Step as well as the step in the Sequence.

 

Regards
Ray Farmer
0 Kudos
Message 9 of 11
(4,468 Views)

Hi,

 

Sorry about that, I forgot about the time limit after an edit of a message.

 

Report

 

I guess this is not what you want to happen. To avoid this use a precondition of TypeOf(Parameters.Step)<>"SequenceCall". This should only change the Step in the SequenceCall and not the SequenceCall itself.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 10 of 11
(4,465 Views)