Forum Discussion
Thanks shankar_r, I have created support ticket yesterday for this issue, now I've sent my project suite and my machine information.. I'll be waiting for a diagnostic.
When you say a patch, you mean an update for TestComplete?
They will guide you how to apply the patch in your environment. They very much helpful.
- AlexKaras7 years agoChampion Level 3
Hi,
It was great to hear from shankar_r that Support was able to end-up with such optimization. Pretty interesting!
I don't have figures and thus cannot prove it, but my feeling is that DelphiScript should not has considerably less performance than Python or JavaScript. So, after checking that test code is more or less optimized and modularized as per tristaanogre, I would prefer to try Shankar's way before considering project conversion to some other language.
- shankar_r7 years agoCommunity Hero
AlexKaras, Me too got surprised when they got back with me that much optimization.
The root cause of that issue i assume, i had almost more then 200+ global variable defined which had defined the with differ ole objects like Dictionary and others.
But they said that patch was included in the 12.4+ versions.
- AlexKaras7 years agoChampion Level 3
Hi Shankar,
> i had almost more then 200+ global variable [...] defined the with differ ole objects
Yes, agree, good catch. It is quite possible that after 'pre-compilation', test execution actually starts, but script engine starts with the initialization of global variables and execution of the global code (irrelevant for DelphiScript, but is the case for, at least, JScript and JavaScript) and this takes time without visual evidence, thus leaving a feeling that test execution is not started yet.