TestsCount Property (ATask)

Returns the number of direct child Tasks/Tests of this Task.

Syntax

[ 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.

Comments

The default value is 0.

Example

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

Applies to

ATask

See Also

IsTask, Status, Tests