Forum Discussion
stein_oddvar_ra
Contributor
Yeah, why not?
Legacy is the short and long answer. We probably can work around it, but since our test suite is a decade old by now the risk of breaking something is holding us back...
Marsha_R
4 years agoModerator
Because you can add them once manually and never have to do it again and never have it interfere with a test.
- stein_oddvar_ra4 years agoContributor
Yes, I know.
I can work around it.
I'm curious about the reason for Python not being able to delete more than half of the TestedApps in one go, though.
- ebarbera3 years agoStaff
Hi stein_oddvar_ra -
Is the count in the python script returning the full number of applications?
Emma
- stein_oddvar_ra3 years agoContributor
Hi, ebarbera
Yes it does. I use the TestedApps.Count value to set the number of times to iterate. The code is simple:
def del_applications():
# Deletes all applications from the TestedApps
numApps = TestedApps.Count
Log.Message(f"Deleting {numApps} apps from TestedApps.")
for i in range(numApps):
if not TestedApps.Delete(i):
Log.Warning(f"Could not delete app index {i} from TestedApps")It logs the correct number of apps, but deletes only the first half of them. The rest fails.
The bug is present in TestComplete 15.10.445.7
Related Content
- 2 years ago
- 8 years ago
- 5 years ago
- 12 years ago
Recent Discussions
- 3 hours ago