question

Emmy avatar image
Emmy asked ericnute converted comment to answer

How to pass variable between iTest and Spirent Test Center session

![alt text][1]What I am trying to do is to 1. Use iTest to load Spirent TestCenter configuration (by using SpirentTestCenter GUI session) 2. On STC session, retrieve the GeneratorConfig handle in order to change the FixedLoad attribute. The first three lines of code work fine because I do not need a field substitution. The problem is on the fourth line where I tried to set the FixedLoad attribute to a variable that is defined on iTest; thus, I have the field substitution box checked. iTest gives out an error "Invalid substitution in field. Unknown command stc::config" set port1 [lindex [stc::get project1 -children-port] 0] set generator1 [stc::get $port1 -children-Generator] set generatorCfg1 [stc::get $generator1 -children-GeneratorConfig] puts [stc::config $generatorCfg1 -FixedLoad $frameSize] My question is how can I pass variable between iTest and Spirent Test Center session? I tried to use ScriptGet and ScriptSet but iTest complained that Spirent Test Center session is not a valid Tcl interpreter. Thank you! [1]: /storage/temp/3888-error.png
iTestSpirent TestCenter (STC)
error.png (48.2 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JeffJ avatar image
JeffJ answered
Your method to do this is correct; however, you should be aware of a bug in iTest 4.3 that prevents field substitution for some of the STC Actions. This has been fixed and is available in iTest 4.3.1. What version of iTest are you using?
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Emmy avatar image Emmy commented ·
Thanks for you quick response, Jeff! We are using iTest 4.2. If we upgrade to iTest 4.3.1, this issue should go away? In addition, we are using STC 4.00.3926. Do we need to upgrade STC as well?
0 Likes 0 ·
nagesh_gm avatar image
nagesh_gm answered
We need to convert the iTest Variable to Spirent TestCenter / TCL in order to make it work. By using "scriptSet" command we can achieve this. Attached test case for your reference.

stc_framesize.fftc (10.3 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.