cancel
Showing results for 
Search instead for 
Did you mean: 

Long delay after first code line in function

SOLVED
Highlighted
New Contributor

Long delay after first code line in function

Hello,

 

I have encountered issue in our project where there is a long delay after first line of code is executed in TestComplete.

 

A very simple example is here:

function ble()
{
Log.Message("Ble")     - 
Log.Message("Ble")
Log.Message("Ble")

}

And the following result:

jbka_0-1596200434817.png

What could be the reason there is 10 seconds difference after first line ?  I know that TC runs trough whole project code and checks all files but that is happening before first Log.Message. Our project is quite large and went trough some version upgrades, however I cannot pinpoint when it started happening.

 

Time between events is set to 5 ms. If I create a new, empty project then there is no delay.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Contributor

Thank you for the reply. It wasn't the events but later I found out it was because of the performance counters for CPU and memory.

View solution in original post

3 REPLIES 3
Highlighted
Community Manager

Hi @jbka! This might be caused by the event handler:

https://support.smartbear.com/testcomplete/docs/reference/events/onlogmessage.html


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
New Contributor

Thank you for the reply. It wasn't the events but later I found out it was because of the performance counters for CPU and memory.

View solution in original post

Community Manager

@jbka Oh, I see! Thank you for posting the solution here🙂


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors