I have an iTest test case that executes and passes perfectly using the iTest GUI as well as from the command line with the GUI open. The test case simply opens a telnet session to a switch as well as two sessions on two IXIA ports. The error ONLY manifests when the iTest GUI is closed and it is executed from the command line. Are there any known issues with accessing IxTclHal from a test case from the command line with the iTest GUI closed?
We have lots of experience ensuring the paths are all set up correctly on the execution machine for IxTclHal, but we may have missed something specific to this particular use case... Please know this test case is able to successfully open sessions to this same IXIA with the following PATH env variables set as shown when executing from the GUI or from the command line with the GUI open, just not "headless".
The configuration specs are as follows:
Execution PC: Windows Vista
PC tcl location C:\tcl
TCLLIBPATH:
"C:/program files/ixia/" "C:/Program Files/Ixia/TclScripts/lib" "C:/Program Files/Ixia/IxOS/5.20-GA-Patch1" "C:/Program Files/Ixia/IxOS/5.20-GA-Patch1/TclScripts/lib"
PATH:
C:\Program Files\Ixia\IxOS\5.20-GA-Patch1; C:\Program Files\ActiveState Komodo IDE 5\;C:\Tcl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;...etc.
IxExplorer connects to IXIA 300-IXIA-XM12-01external to iTest => OK
PC tcl shell "% package require IxTclHal" external to iTest => OK (5.20)
IXIA software on PC matches IXIA 300-IXIA-XM12-01 => IxOS 5.20.400.18 GA-Patch1
itestcli Command Processor Version 3.3.1
Fanfare Command: itestcli -rw -w "C:/datastore/workspace/testware" -l "fanfare.log" -r "C:/datastore/workspace/testware/results/1239808309/ixia_example/report.html" "ixia_example.fftc"
Execution messages:
....
Info message 1 8.1 open_tel Open telnet session on 16.93.51.148 2013
Info analysis dut_001 3.2 8.3.8 open_tel Verified device state 344-5406-03; session: dut_001_conn001
Info message 1 10.1 topoFunc Execute topoFunc_InterfaceGetAttribute_tcl on 300-IXIA-XM12-01
Info message tcl_she 5 10.5 topoFunc topoFunc_InterfaceGet successful - Interfaces on device = 1/1 1/2
Info message 8 10.8 topoFunc topoFunc_InterfaceGetAttribute_tcl execution on 300-IXIA-XM12-01 Complete
Info message 1 12.1 open_ixi Open IXIA session on 300-IXIA-XM12-01 16.93.52.202
Fail terminal testEqu 2 12.2 open_ixi Error attempting to open connection to server: Error loading TCL package IxTclHal
Fail execution testEqu 2 12.2 open_ixi Test case ixia_example has failed.
Info execution open_ixi Execution completed (1m 22s)