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

Re: Long delay after first code line in function

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

Re: Long delay after first code line in function

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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: Long delay after first code line in function

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

Highlighted
Community Manager

Re: Long delay after first code line in function

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


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors