mcpm
2 years agoOccasional Contributor
RuntimeErrors after upgrading to 15.68.8.7
Hello, I recently upgraded to the latest version of TestComplete, and unfortunately, I'm experiencing issues. I'm still facing a RuntimeError originating from TestComplete's native functions (I'm us...
- 18 days ago
I found a simple workaround.
Just create an OnStartTestEvent function, hook it up to TestComplete’s OnStartTestEvent, and add this line inside:
gc.collect()
Don’t forget to put import gc at the top of your module.
What this does: OnStartTestEvent is triggered right at the start of the test run, so calling gc.collect() there forces Python’s garbage collector to clean up memory before your tests begin.