Executefile method is used to run the functions which are saved in .vbs file
If you want to call a functions for the private\single script or action, use executefile method.
Note: here we are not associating library file/Functions to QTP
Advantage:
No need to associate the library files to the QTP
Dis-Advantages:
The called function is always applicable to the that particular script or action only. In other word the called function will not be a global.
Using Execute file we cannot debug within the vbs files by using “breakpoints”. If we try to use breakpoint in the vbsfiles by opening them in QTP, the QTP debugger will not stop at the break point specified.
If you want to call a functions for the private\single script or action, use executefile method.
Note: here we are not associating library file/Functions to QTP
Advantage:
No need to associate the library files to the QTP
Dis-Advantages:
The called function is always applicable to the that particular script or action only. In other word the called function will not be a global.
Using Execute file we cannot debug within the vbs files by using “breakpoints”. If we try to use breakpoint in the vbsfiles by opening them in QTP, the QTP debugger will not stop at the break point specified.