question

ndonga avatar image
ndonga asked mreddy commented

iTest-N2X session establishement issue

Hello Folks, Can someone help me to fix this issue with n2x session, when try to get the configuration from RT, I hit this error. This happens on windows 7 client. Please let me know .

 

I really appreciate your time

 

Regards,

Narasim

 

------------------------------------------------------

Using external tcl interpreter

tcl version: 8.5.11

tclsh location: C:/WORK/iTEST/tchsh/bin/tclsh85.exe

tcl library: C:/WORK/iTEST/tchsh/lib/tcl8.5

tcl package search path: C:/WORK/iTEST/tchsh/lib/tcl8.5 C:/WORK/iTEST/tchsh/lib c:/work/itest/tchsh/lib/teapot/package/win32-x86_64/lib c:/work/itest/tchsh/lib/teapot/package/tcl/lib {C:/Program Files (x86)/Agilent/N2X/QuickTest} {C:/Program Files (x86)/Agilent/N2X/QuickTest/lib} c:/WORK/iTEST/tchsh C:/WORK/iTEST/AgilentN2X

 

Working platform: Windows

 

Loading Tcl package AgtClient: OK

Loading helper scripts...OK

 

Searching for QuickScript directory...OK

 

Checking packet decode functionality...OK

 

Connecting to Agilent chassis at 172.19.75.146 ...OK

 

Checking Agilent version...OK

 

Connected to session 1 with label tmarian_ppLFA

 

AgilentTraffic>configuration get

Error generating Tcl Configuration script

Unable to retrieve QuickTest root from Windows Registry using key='HKEY_LOCAL_MACHINE\SOFTWARE\Agilent\N2X\QuickTest', value='RootDirectory'

 

Reported error: unable to open key: The system cannot find the file specified.

 

    while executing

"error "Unable to retrieve QuickTest root from Windows Registry using key='$key', value='$vName'\n\nReported error: $rootDir\n""

    invoked from within

"if [catch { registry get $key $vName } rootDir] {

                error "Unable to retrieve QuickTest root from Windows Registry using key='$key', val..."

    (procedure "GetQtRoot" line 13)

    invoked from within

"GetQtRoot"

    (procedure "::TestIni::InitialiseStdDefaults" line 5)

    invoked from within

"::TestIni::InitialiseStdDefaults"

    (in namespace eval "::TestApp" script line 24)

    invoked from within

"namespace eval ::TestApp {

 

    # Declare state variables

    variable appCfg     ;# array - standard parameters

    variable appData    ;# array - ap..."

    (file "C:/Program Files (x86)/Agilent/N2X/Platform/bin/../../QuickTest/Scripts/RouterTester900/Tools/Session/QuickScript/QuickScript.app.tcl" line 46)

Unable to retrieve QuickTest root from Windows Registry using key='HKEY_LOCAL_MACHINE\SOFTWARE\Agilent\N2X\QuickTest', value='RootDirectory'

 

Reported error: unable to open key: The system cannot find the file specified.

 

    while executing

"error "Unable to retrieve QuickTest root from Windows Registry using key='$key', value='$vName'\n\nReported error: $rootDir\n""

    invoked from within

"if [catch { registry get $key $vName } rootDir] {

                error "Unable to retrieve QuickTest root from Windows Registry using key='$key', val..."

    (procedure "GetQtRoot" line 13)

    invoked from within

"GetQtRoot"

    (procedure "::TestIni::InitialiseStdDefaults" line 5)

    invoked from within

"::TestIni::InitialiseStdDefaults"

    (in namespace eval "::TestApp" script line 24)

    invoked from within

"namespace eval ::TestApp {

 

    # Declare state variables

    variable appCfg     ;# array - standard parameters

    variable appData    ;# array - ap..."

    (file "C:/Program Files (x86)/Agilent/N2X/Platform/bin/../../QuickTest/Scripts/RouterTester900/Tools/Session/QuickScript/QuickScript.app.tcl" line 46)

AgilentTraffic>

 

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.

1 Answer

·
lakshminarayana avatar image
lakshminarayana answered mreddy commented

Hi Narasim,

 

Could you please let me know your iTest version and Agilent N2x version.

 

Please have a look at the below link that can help you fix the issue.

 

http://forums.fanfaresoftware.com/t5/Traffic-Generation/Error-retrieving-configuration-from-Agilent-N2X/m-p/3154/highlight/true#M123

 

Thanks,

 

7 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.

ndonga avatar image ndonga commented ·

Hello Lakshminarayna, thank you for taking a look at my issue: Here are the details:

 

iTEST:

 

iTest 4.1 

Version: 4.1.3

Build: 59901

 

Agilent N2X version:

6.12

 

Please let me know how I can fix my issue. The other solution doesn't work for me.

 

Regards,

Narasim

 

 

0 Likes 0 ·
rbaswareddy avatar image rbaswareddy ndonga commented ·

Hi,

 

Please ensure that TCLLIBPATH has the similar path settings as mentioned below as the first entries:

 "C:/Program Files/Tcl83/lib/AgilentN2X" "C:/Program Files/Agilent/N2X/QuickTest/lib"

 

Hope this helps!!!

 


 

0 Likes 0 ·
ndonga avatar image ndonga rbaswareddy commented ·

Hello Baswareddy, After fixing env issues, I have this new error. May I know what needs to be done to over come this error.

 

thank you..

 

Regards,

Narasim

-----------------

 

Using external tcl interpreter
tcl version: 8.3.4
tclsh location: C:/Program Files (x86)/Tcl83/bin/tclsh83.exe
tcl library: C:/Program Files (x86)/Tcl83/lib/tcl8.3
tcl package search path: {C:/Program Files (x86)/Tcl83/lib/tcl8.3} {C:/Program Files (x86)/Tcl83/lib} {C:/Program Files (x86)/Tcl83/lib/AgilentN2X} {C:/Program Files (x86)/Agilent/N2X/QuickTest/lib} {C:/Program Files (x86)/Agilent/N2X/QuickTest}

Working platform: Windows

Loading Tcl package AgtClient: OK
Loading helper scripts...OK

Searching for QuickScript directory...OK

Checking packet decode functionality...OK

Connecting to Agilent chassis at 172.19.75.146 ...OK

Checking Agilent version...OK

Connected to session 1 with label tmarian_ppLFA

AgilentTraffic>configuration get
Error generating Tcl Configuration script
can't read "pkgPath": no such variable
    while executing
"lsearch -exact $auto_path $pkgPath"
    (procedure "TestApp::InitTestApp" line 12)
    invoked from within
"TestApp::InitTestApp"
    invoked from within
"if { ([lsearch -exact [namespace children ::] ::AgtQtl] != -1) } {

    #
    # I have been sourced by a host application and it's up to them
    # to..."
    (file "C:/Program Files (x86)/Agilent/N2X/Platform/bin/../../QuickTest/Scripts/RouterTester900/Tools/Session/QuickScript/QuickScript.app.tcl" line 814)
can't read "pkgPath": no such variable
    while executing
"lsearch -exact $auto_path $pkgPath"
    (procedure "TestApp::InitTestApp" line 12)
    invoked from within
"TestApp::InitTestApp"
    invoked from within
"if { ([lsearch -exact [namespace children ::] ::AgtQtl] != -1) } {

    #
    # I have been sourced by a host application and it's up to them
    # to..."
    (file "C:/Program Files (x86)/Agilent/N2X/Platform/bin/../../QuickTest/Scripts/RouterTester900/Tools/Session/QuickScript/QuickScript.app.tcl" line 814)

 

 

 

0 Likes 0 ·
VidyaH avatar image VidyaH ndonga commented ·

Hi Narasim,

Please ensure TCLLIBPATH has the following as the first entries: "C:/Program Files/Tcl83/lib/AgilentN2X" "C:/Program Files/Agilent/N2X/QuickTest/lib". From the log , i do not see them as first entries in TCLLIBPATH.

 

Please fix this and try again.

 

Thanks,

Vidya

0 Likes 0 ·
ndonga avatar image ndonga VidyaH commented ·

Hello Vidya, I still see this error after fixing the env..

 

Regards,

Narasim

 

Fanfare AgilentTraffic command interpreter. Copyright (c) 2005 - 2010, The Fanfare Group, Inc.


Using external tcl interpreter
tcl version: 8.3.4
tclsh location: C:/Program Files (x86)/Tcl83/bin/tclsh83.exe
tcl library: C:/Program Files (x86)/Tcl83/lib/tcl8.3
tcl package search path: {C:/Program Files (x86)/Tcl83/lib/AgilentN2X} {C:/Program Files (x86)/Agilent/N2X/QuickTest/lib} {C:/Program Files (x86)/Tcl83/lib/tcl8.3} {C:/Program Files (x86)/Tcl83/lib} {C:/Program Files (x86)/Tcl83/lib/AgilentN2X} {C:/Program Files (x86)/Agilent/N2X/QuickTest}

Working platform: Windows

Loading Tcl package AgtClient: OK
Loading helper scripts...OK

Searching for QuickScript directory...OK

Checking packet decode functionality...OK

Connecting to Agilent chassis at 172.19.75.146 ...OK

Checking Agilent version...OK

Connected to session 1 with label tmarian_ppLFA

AgilentTraffic>configuration get
Error generating Tcl Configuration script
can't read "pkgPath": no such variable
    while executing
"lsearch -exact $auto_path $pkgPath"
    (procedure "TestApp::InitTestApp" line 12)
    invoked from within
"TestApp::InitTestApp"
    invoked from within
"if { ([lsearch -exact [namespace children ::] ::AgtQtl] != -1) } {

    #
    # I have been sourced by a host application and it's up to them
    # to..."
    (file "C:/Program Files (x86)/Agilent/N2X/Platform/bin/../../QuickTest/Scripts/RouterTester900/Tools/Session/QuickScript/QuickScript.app.tcl" line 814)
can't read "pkgPath": no such variable
    while executing
"lsearch -exact $auto_path $pkgPath"
    (procedure "TestApp::InitTestApp" line 12)
    invoked from within
"TestApp::InitTestApp"
    invoked from within
"if { ([lsearch -exact [namespace children ::] ::AgtQtl] != -1) } {

    #
    # I have been sourced by a host application and it's up to them
    # to..."
    (file "C:/Program Files (x86)/Agilent/N2X/Platform/bin/../../QuickTest/Scripts/RouterTester900/Tools/Session/Quic

0 Likes 0 ·
mkaruvar avatar image mkaruvar ndonga commented ·

could you pleas share solution if this issue is resolved?

I am also facing the same issue in windows 7 64 bit  with iTest 4.2 and N2X 6.13 SR2. 

I am not seeing the registry key is getting updated in windows.

 

0 Likes 0 ·
mreddy avatar image mreddy commented ·
Hello friends, When I try to execute the N2X procedures from local machine(N2X is in remote network).It is taking huge time to connect and proceed.When I execute the same script on remote machine,it is quite faster and good.Can anyone please suggest me what are the possible solutions..
0 Likes 0 ·

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.