Printer FriendlyEmail Article Link

How can I invoke commands when using SpirentTestCenter API?


There are two methods of invoking commands:

1. You can use the perform function to invoke a command. For example: stc::perform generatorStart -generatorList $generator
When you use the perform function, you specify the command name, along with name-value pairs for attributes that are defined for the corresponding command object. When you use perform, you must call the function each time you want to execute an action.
2. You can create command objects and use the sequencer to execute a set of commands.
When you use the sequencer, you add the set of command objects to the sequencer, and then call the perform function to execute the SequencerStart command.

Product : Automation,API,Spirent TestCenter