uditbatra87
12 years agoOccasional Contributor
How to Load a .vbs Function Library at Run-time in TestComplete
Hi,
My scenario is i have different Script files for different releases.
We run tests using TestComplete COM and IntegrationObject.RunRoutineEx to launch Driver Script and execute tests in our framework.
So is there a way where i can just give a path and Load the Func lib which are also Script files in .vbs extension. QTP has a method
LoadFunctionLibrary (Path of the function library). Basically i want to know how to Load testcomplete Functin libraries at run-time
My scenario is i have different Script files for different releases.
We run tests using TestComplete COM and IntegrationObject.RunRoutineEx to launch Driver Script and execute tests in our framework.
So is there a way where i can just give a path and Load the Func lib which are also Script files in .vbs extension. QTP has a method
LoadFunctionLibrary (Path of the function library). Basically i want to know how to Load testcomplete Functin libraries at run-time
Hi Udit,
Here is the script suggested by Gena Alpaev:
Set ws = Sys.OleObject("WScript.Shell")
ws.Run("c:\somefile.vbs")