08-18-2011 10:02 AM
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.
08-18-2011 10:22 AM
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.
08-18-2011 11:21 AM
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! !
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.