Customer Service Center
Home
Knowledge Base
Forums
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ11649
Printer Friendly
Email Article Link
How can I invoke commands when using SpirentTestCenter API?
Answer
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.
Version
1.0
Publish Date
2012-03-26
Categories
Product : Automation,API,Spirent TestCenter
Related Articles