Index Property (Host Objects)

Applies to TestComplete 15.45, last modified on December 01, 2022
The Network Suite functionality is deprecated. We don’t recommend using it for distributed testing. Consider using a CI/CD system for managing distributed tests. See Migrating Distributed Tests to CI/CD Systems for details. In case you need to run web tests on multiple environments in parallel, you can also try using your project’s Execution Plan.

Description

The Index property returns the index (starting from 0) of the given host in the network suite's host collection (see Hosts Object). This index can be used to identify the host in this collection via the Hosts.Items property. To learn the number of hosts in this collection, use the Hosts.Count property.

Declaration

HostObj.Index

Read-Only Property Integer
HostObj An expression, variable or parameter that specifies a reference to a Host object

Applies To

The property is applied to the following object:

Property Value

An integer value that means the zero-based index that the given host has in the host collection of the network suite.

See Also

Distributed Testing
Host.Name
Hosts Object
Hosts.Count
Hosts.Items

Highlight search results