NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Reporting error with multiple file selection with Dynamic Client Model

I have modified the Dynamic Client Model example that ships with TestStand. Teh example uses a pop-up to select a single sequence file to execute. I have made changes that remove the pop-up and instead use a file selection dialog that is configured to allow the selection of multiple sequence files. ThisContext.RunState.Engine.DisplayFileDialog("Select Test Sequence...","OK","",Locals.SelectedSeq,Locals.SelectedSeq,131,"",4612,"Sequence Files (*.seq)|*.seq||")

 

After this step, I added a Do-While Loop so that the model will index through the returned array and execute each client file. It works, but my report only contains the results from the first client file that gets executed. My guess is that the results from the 2nd MainSequence call onwards are not getting added to the report string and I have no idea how to fix this.

 

When I call a single sequence file with multiple sub-sequence calls in it, the reporting works just fine.

 

Note that I only perform the looping in the Single Pass entry point, which is intended to be used for test development. The Test UUTs entry point is intended to be used for a test suite, which is defined a a single sequence with sub-sequence calls.

 

I've attached the sequence file.

"All truths are easy to understand once they are discovered; the point is to discover them." -- Galileo Galilei

0 Kudos
Message 1 of 3
(2,990 Views)

You need to adjust your Do-While loop in the Main step group to either include saving the report (which would give you one report per sequence selected) or you need to grab the ResultList generated by the MainSequence Callback step and stash it somewhere. After all the sequences finish, you'd have to append all the ResultLists together (which you should be able to do without much trouble) and everything will get saved together. You may have to do some fancy foot work to get the header to show useful information about what was actually run.

0 Kudos
Message 2 of 3
(2,988 Views)

Well, I tried stashing the result list. I was able to get all the results into the array, and after debugging I find that the TestReport callback is only passing the first element of the ResultList array. Culprit found! Smiley Very Happy!

 

At least now I can do some more investigating and see if I can get all my results in a single report with useful header information. I have no idea how, but its a start.

"All truths are easy to understand once they are discovered; the point is to discover them." -- Galileo Galilei

0 Kudos
Message 3 of 3
(2,985 Views)