Forum Discussion

nikhilindurkar's avatar
nikhilindurkar
New Contributor
14 years ago

Urgent !!!! How to associate .vbs

Hi All



Can some please tell me how can I associate vbs in Test Complete.



I worte a script which need to call a .vbs file for its execution.That .vbs file contains few function whcih are required for the application.Can some please tell me how can I associate vbs in Test Complete.







With Regards

Nikhil C. Indurkar
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    You can't actually associate a vbs file with TestComplete.  However, you can instantiate the WScript.Shell object in TestComplete using Sys.OleObject and call the "run" method from that to run your VBS file.
  • I am a brand new user and have qtp vbs scripts that run a framework- i'd like to run the main vbs script that controls all the functionality



    these calls  run the functions defined as .vbs files - how can I run them in testcomplete?




    KillExcel () 

    Environments

    runit


  • Hi,



    TC doesn't support QTP-specific syntax. Most probably, you won't be able to run QTP scripts without QTP.
  • You can rename the file as .svb and include it as a Unit in your project.



    Or you can keep it as .vbs and include it in a Script Extension package.