cancel
Showing results for 
Search instead for 
Did you mean: 

Test routines takes too long to start!

Community Hero

Re: Test routines takes too long to start!

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.

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Hero

Re: Test routines takes too long to start!

@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. 


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”


Extension Available

Community Hero

Re: Test routines takes too long to start!

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.

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors