Forum Discussion

nikunj_agrawal's avatar
13 years ago

Testcomplete memory usage goes on increasing during long runs of scripts.

At a specific screen in my application when i use FindAllChildren method the memory usage of testcomplete jumps by nearly 20 mb.And during continous execution it keeps increasing.what is the reason??

1 Reply

  • Hi,


    This can happen if the Depth parameter value of the FindAllChildren method you set is too high. TestComplete starts searching for objects in the specified number of levels and consumes more and more memory.


    To avoid this, try specifying the Depth parameter's value in accordance with your needs. For example, if you just need to search for the needed objects in child and grandchild objects, set the parameter's value to 2; if you need to find the objects in grandchild and great grandchild objects, set Depth to 3, and so on.