Returns the number of direct child Tasks/Tests of this Task.
[ lTestsCount = ] Object.TestsCount
The TestsCount property syntax has the following parts:
Name |
Type |
Description |
Object |
ATask |
ATask object |
lTestsCount |
Long |
An integer specifying the number of direct child Tasks/Tests of this Task. |
The default value is 0.
The following example lists the names of the child tasks/tests under the current task:
print "Task "; Task.Id; " has "; Task.TestsCount; " child Tasks/Tests"
for n=1 to Task.TestsCount
obTest=Task.Tests(n-1)
if obTest.IsTask
print "Task ";
else
print "Test ";
endif
print obTest.Name
next