Wednesday, August 15, 2007

How to Call VBS File (VB Library) from script in QTP

When a function is called in QTP , there is a need to add VB Library or VBS file before calling that function.From the following command that Library or VBS File can be called through QTP script.


ExecuteFile("C:\Script\Function_Any.vbs")

This command load the VB Library named Function_Any.vbs and then all the function written in that file can be called in QTP.(This is tested in QTP 9.0)

No comments: