Do USEUNIT impact to performance when running script?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do USEUNIT impact to performance when running script?
Dear all,
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
Ex:
The 1st way
Script A
Script B
Script C
Script D
//USEUNIT A
//USEUNIT B
//USEUNIT C
The 2st way
Script common
//USEUNIT A
//USEUNIT B
//USEUNIT C
//USEUNIT E
Script A
//USEUNIT common
Script B
//USEUNIT common
Script C
//USEUNIT common
Script E
//USEUNIT common
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?
Thanks,
Vinh
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vinh,
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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
