Do USEUNIT impact to performance when running script?
I'm not sure if Im using the USEUNIT to call other functions from other scripts when I need it or add all them into one script and only import it for other scripts
The 1st way
The 2st way
so when the TestComplete is running, does it load all code of script in common in memory or not? is the 2nd way impact to performance if there are a huge scripts in a test suites?
I think that you need to ask Support via the https://support.smartbear.com/testcomplete/message/ form for official but not guessed answer.
To my level of knowledge, any script language runtime always loads and 'precompiles' script code before execution. This is functionality and architecture of script language runtime but not something that is specific to TestComplete itself.
Thus I think that all statically available script code will be loaded before execution start regardless of the way you organize it.
/Alex [Community Hero]
[Community Heroes] 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. Posts made by [Community Heroes]
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.
The [Community Hero] signature is used with permission by SmartBear Software.