question

ChrisB avatar image
ChrisB asked ChrisB posted

How to load a specific version of STC in iTest?

Customer has three different versions of STC installed, and iTest is automatically loading the oldest one. How do I make iTest pick which one to load? I tried More > > Tcl / Spirent TestCenter Tcl API directory, but it didn't do anything. Maybe I picked the wrong directory. If this is the proper way then what is the valid directory?

 

Also, I checked environment variables thinking that PATH or TCLLIBPATH might have some STC dirs in them. Only found Avalanche stuff, no STC stuff at all in either one.

 

Thanks,

Chris

iTesttraffic generation
10 |950

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

IvanS avatar image
IvanS answered IvanS posted

You can also try "Spirent TestCenter Tcl API directory" session property (see attached screenshot).

stc_dir.JPG


stc_dir.JPG (28.9 KiB)
5 comments
10 |950

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

ChrisB avatar image ChrisB commented ·

I have tried both of these and neither works. I specify the 3.51 directory and it still loads 3.435.

 

I'm using 4.0.4 iTest. Did anything change in this release regarding STC GUI?

 

Chris

0 Likes 0 ·
IvanS avatar image IvanS ChrisB commented ·

Did you restart iTest after changing TCLLIBPATH environment variable?

You can also try to change STC_HOME environment variable (not sure that it's necessary but on my system I'm changing both oif them).

0 Likes 0 ·
ChrisB avatar image ChrisB IvanS commented ·

I did restart.

 

Tried STC_HOME with both / and \ slashes, and neither works.

 

Are you using 4.0.4?

 

Are you available for a web conference?

 

0 Likes 0 ·
HosoonK avatar image HosoonK IvanS commented ·

Among several bug fixes, iTest 4.0.4 has only one bug fix regarding STC GUI (KAZ-22561) and I do not think it has anything to do with selecting desired version of STC application.

 

When you start the STC session profile what is your "tcl package search path" values ?

 

0 Likes 0 ·
ChrisB avatar image ChrisB HosoonK commented ·

I turned on TCL logging and figured it out. Was an error regarding STC_INSTALL_DIR, which meant I had to go correct the pkgindex.tcl file. If you don't do that, then iTest loops through registry entries and finds the stc tcl file that way - and finds the old version. We should probably change this around so it loops in REVERSE order, finding the newest version first.

 

Chris

0 Likes 0 ·
HosoonK avatar image
HosoonK answered HosoonK posted

You need to set the TCLLIBPATH to point the version that you want to load.

For example for v.3.50 put this in your TCLLIBPATH and when you start the STC session profile make sure this is the one that used from the  "tcl package search path"

 

 "C:/Program Files/Spirent Communications/Spirent TestCenter 3.50/Spirent TestCenter Application/"

 

Thanks,

Hosoon

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.