Forum Discussion
Logically both use VBscript, so you can use it only if you have not used QTP Object anywhere in the code.
If you have used QTP Object, then those part you will have to replace it with testcomplete objects.
Cheers..
Kavan
is there a "functions" library where I can put them?
- kavansays9 years agoContributor
TO use function library just follow below steps..
* Create you function lib as .vbs
* Export these lib to the script folder(of the project) as existing script.
* use these lib in your actual scripts by simply adding one line on top of the script as "USEUNIT <Libname>"
* Now you can access all the functions written in that lib file to that script.
->>>>>> In below image sprint 10 is the project name and General is the Lib files..
Cheers..
Kavan Shah
- jloyzagawh9 years agoContributor
I have the existing lib as Excel.vbs what do you mean by export to library?
- kavansays9 years agoContributor
Go to scripts(under your active project) -> Right click -> Select Existing Script -> select your excel.vbs file.
Now just type "USE UNIT Excel on top of your script(say Unit_1), now you can call all your functions written in excel.vbs in unit_1 Script.
Hope this helps..
Cheers,
Kavan
Related Content
- 2 months agoNicolaFilosa_SE
- 5 years agoAurore