Virus scan in progress. Please wait to download attachments.
This example sequence uses the TestStand API to programmatically reload module prototypes on all steps within a given sequence file. It utilizes the ForEach sequence file, which provides an easy way to perform common iteration tasks, such as performing an operation on each step or each sequence in one or more sequence files.
This example uses the DisplayFileDialog() Method to prompt the user to select one or more files. The example then passes the list of selected files to the ForEachStepInPathList sequence in the ForEach.seq tool which ships with TestStand (this tool is located in <TestStand>\Components\Tools\ForEach.seq). The Locals.sequenceCallback variable defines a sequence in the current sequence file that is called by the foreach tool on each step in each sequence file being processed. The callback sequence includes a Parameters.data parameter which contains a reference to the active step. The example uses this reference to call the Module.LoadPrototype() method to reload the module prototype.
Hardware and Software Requirements
Reload All Step Prototypes In Sequence Files - TS2012
TestStand 2012 SP1 or compatible
Reload All Step Prototypes In Sequence Files - TS3_1
TestStand 3.1 or compatible
Steps to Implement or Execute Code
Run the ReloadAllPrototypes sequence using the Execute » Run MainSequence option.
When Prompted, select one or more sequence files to process.
View the resulting report showing that all steps were updated"
Additional Information or References
For more information on using the ForEach.seq tool, refer to the following example: