Printer FriendlyEmail Article Link

Spirent TestCenter: What is the difference between "Run External Process" and "Global Services: Run Custom Command" sequencer commands?

Environment/Versions
  • STC
  • Command sequencer
  • "Run External Process" and "Global Services: Run Custom Command" sequencer commands
Answer
  • Run External Process

    • This command will let you execute an external TCL script that that execution will be separated from the BLL of the current test session (doesn't need to be hosted in a lab server).
      • Note: As indicated this is separate from the BLL so if running a script, it will not be able to execute any Spirent TestCenter API specific commands that belong to this GUI session.
 
  • Global Services: Run Custom Command

    • This command works similar to "Run External Process" executing only TCL scripts, however, this will let you execute STC specific commands (without calling the library) within the BLL of the current test session (doesn't need to be hosted in a lab server).
    • Another difference is that this command will expect that the script returns "1" if it ended successfully, otherwise the command will be marked as failed in the command sequencer.
    • This command will also let you call, for example, a python script from the tcl script by using the "exec" function.
    • i.e:
exec python "C:/the/complete/filepath/python_script.py"
  • Note: The python script in this example will not be able to execute any Spirent TestCenter API specific commands that belong to this GUI session.

Product : Spirent TestCenter