How to call Functions/Subroutines in the script/Action
I was making a scripting guideline document for QTP.One disadvantage I have felt while coding using QTP is lack of a compiled module where you can create the functions and call them in the scripts.In QTP,I am creating all the subroutines in the script and than calling one subroutine in another.This way the length of my script/Action is going very big because number of subroutine within one script/Action are more.There is a serious designing issue with Quick Test since usage of code across actions of the same script is also not very flexible due to Object repository.Can someone tell me how do you handle this limitation?Do all of you create subroutines in the script/Action and than call them in the same script/ Action or is there any workaround for the same.
Thanks and Regards,
Re: How to call Functions/Subroutines in the script/Action
Create a function/Sub in .vbs script.You can call any function/sub ,which was written in .vbs, on any action block.