Spirent Testcenter
自动化测试脚?/p>
TCL -1
基本功能
2015-06-18
浏览
(69)
#!/bin/sh
# aTemplate.tcl
exec tclsh "$0" ${1+"$@"}
#-----------------------------------------------------
#
#
#-----------------------------------------------------
#
引用
STC API ,SpirentTestCenter.tcl
的路?/p>
source {C:ProgramFilesSpirentCommunicationsSpirentTestCenter
4.20Spirent TestCenterApplicationSpirentTestCenter.tcl}
#
开启日志,
-logTo
?/p>
日志保存路径?/p>
使用
stdout
为标准输出;
-loglevel
?/p>
可?/p>
DEBUG
?/p>
INFO
?/p>
WARN
?/p>
ERROR
四种?/p>
stc::configautomationoptions -logTo "aTemplateLog.txt" -logLevel DEBUG
#
配置机框
Ip
槽位端口?/p>
set chassisAddress "192.168.0.100"
set slotPort1 "8/25"
set slotPort2 "8/26"
#
创建一个项?/p>