Forum Discussion
ebarbera
Staff
5 years agoHi stein_oddvar_ra -
Is the count in the python script returning the full number of applications?
Emma
stein_oddvar_ra
5 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