Micro Focus QTP (UFT) Forums
Optimization of code in descriptive programming BPT framework. - 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: Optimization of code in descriptive programming BPT framework. (/Thread-Optimization-of-code-in-descriptive-programming-BPT-framework)



Optimization of code in descriptive programming BPT framework. - learnqtp123 - 06-22-2011

Hi

We are using BPT framework and its completely in descriptive programming. we have function libraries which has defined functions for almost all the events. Now the issue is that it behaves very slow, for every business component it fetches the page literals goes to the database and searches for that particular button and it takes time.Code can quickly set the text value on the page however during the click event on any command button on the page it takes time as it searches all the buttons on the page.
I am looking for optimizing the code to increase the speed of execution, specifically when it searches during the click event.
Please let me know if you need any more information to suggest me solution.

Thanks
N