Assosiate Library functions path mentioning
Now i am using QTP.
Here the path of the given .vbs file is placed in all scripts.
In future if i change the .vbs file place to some other floder.then i want to change the path in all scripts.
instead of doing that one.....
is their any facility to write down as a function and call it or this any method is their...
by changing the path once in that function and it will execute to all like that...
can any one come across this ....
Re: Assosiate Library functions path mentioning
Should be able to do something like ....
Public Sub ReLinkLibraryFile(PathOfTest, PathOfLibFile)
Dim qtpApp 'As QuickTest.Application
Dim qtpTest 'As QuickTest.Test
Dim qtpRes 'As QuickTest.Resources
Dim qtpSettings 'As QuickTest.TestSettings
Dim qtpTestLib 'As QuickTest.TestLibraries
Set qtpApp = CreateObject(vbNullString, "QuickTest.Application")
Set qtpTest = qtpApp.Test
Set qtpSettings = qtpTest.Settings
Set qtpRes = qtpSettings.Resources
Set qtpTestLib = qtpRes.Libraries
Set qtpApp = Nothing
Set qtpTest = Nothing
Set qtpRes = Nothing
Set qtpSettings = Nothing
Set qtpTestLib = Nothing