Forum Discussion
HKosova
Alumni
14 years agoHi Biji,
The WScript.CreateObject() syntax is used in VBScript scripts that run directly from Windows (via Windows Script Host). In VBScript code that is run in TestComplete, you need to use CreateObject() or Sys.OleObject():
You can also run applications, such as your tested application, via TestedApps. For example:
The WScript.CreateObject() syntax is used in VBScript scripts that run directly from Windows (via Windows Script Host). In VBScript code that is run in TestComplete, you need to use CreateObject() or Sys.OleObject():
Call CreateObject("Wscript.Shell").Run("C:\xyz\someFile\kd_gl.py")
' or
Call Sys.OleObject("Wscript.Shell").Run("C:\xyz\someFile\kd_gl.py")You can also run applications, such as your tested application, via TestedApps. For example:
where MyApp is an item in TestedApps that specifies the needed executable file and its parameters.