DP and called .vbs make for slow runtime - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: DP and called .vbs make for slow runtime (/Thread-DP-and-called-vbs-make-for-slow-runtime) |
DP and called .vbs make for slow runtime - wheelercha - 01-05-2011 Need advice. I've built a suite of test cases that operate from a framework of called public sub routines and descriptive programming that uses a variable to pass in the description at runtime. Test Settings refernces the file of variables : Example: Variable = Public Const Browser := "Title = Browser" Action calls a public sub : navigate() Browser(Browser).click ISSUES: The issue is that to do anything in this method is about 10x slower than simply running the routines within the action. My theory is that the fact that I am paasing in the variables(that hold the descriptions) to the sub routines at runtime is slowing the automation performance down. I tried using a dictionary object but when the sub routine is called I don't see the that the descriptions are being passed so the code fails. What can I do? I am doing it this way so that rather changing 100's of subroutines I can simply change 1 variable in one file. Variables <---> 100 Sub routines Any help is appreciated. Thanks Charles |