Logging issue on TC 15.80 (Python scripts)
Hello,
After being stuck on version 15.67 for a long time (newer versions had the issue I described in this discussion:
RuntimeErrors after upgrading to 15.68.8.7 | SmartBear Community
(I also reported a ticket, but the issue was never fixed, and we didn’t try the workaround from that link because it was too risky for us), we finally decided to upgrade TestComplete to the newest version.
This required some adjustments in our codebase, for example importing "the shim" as described in this article:
https://support.smartbear.com/testcomplete/docs/scripting/specifics/python_tc_globalobjects.html
e.g.:
from tc import Log, Project, ...
We no longer see any RuntimeErrors, so we were happy with this new version. However, we are now facing another issue: “disappearing” Log lines in TestLog during test execution.
It looks like this: at the beginning of the test run all Log lines are present, but over time there are fewer and fewer of them, until TestComplete stops logging entirely.
Scenario:
If I run a group of two tests (let’s call them First and Second):
- First test contains most of the logs
- Second test has almost none
But if I run Second and Third:
- Second test contains most of the logs
- Third test has almost none
You can see the problem in the attached screenshot. In general, only the first few tests produce log entries. After that, Log entries are empty, which is a huge problem for us.
Has anyone encountered this issue?