| || |
When I leave a test running overnight it gets so far but then fails because of the memory.
Is there a tool or function I can use that will flush out the memory of my machine?
P.S - I am using VB script.
I assume that the memory is consumed by the Test Log. To check whether my assumption is correct, please add the "Log.Enabled = False" line at the beginning of every test to disable posting messages to the log and run the tests. If the problem persists, please send me an image of the error message displayed when the crash occurs.
If the problem disappears, the cause of the problem is the log size. Currently, there is no way to make TestComplete "flush" test logs until the test execution has finished. However, in TestComplete 5, you can do the following to decrease the size of the log:
1. Call the Log.LockEvents method to prevent TestComplete from posting event messages. Please see the "Log.LockEvents" help topic for more information on the Log.LockEvents method.
2. Do not store screenshots in the BMP format. I recommend that you use the PNG format since it saves images in the same quality but uses less memory. Please see the "Specifying Log Images Format" help topic to learn how to change the format of screenshots stored in the Test Log.
If these suggestions do not help, the only way to decrease the size of your logs is by decreasing the number or length of the posted messages.
Just for your information: in TestComplete 6, a new log file is created for every Test Item - this decreases the memory consumption of TestComplete because it does not store the entire Test Log in memory.