DDT.DriverByName Property

Applies to TestComplete 15.0, last modified on November 17, 2021

Description

Use the DriverByName property to obtain the DDTDriver object, whose Name property is equal to the string specified by the Name parameter. The property allows you to avoid using global variables to store references to the driver in a case when the driver creation and data processing code are located in different script routines (see Using DDT Drivers).

Declaration

DDT.DriverByName(Name)

Read-Only Property A DDTDriver object
Name [in]    Required    String    

Applies To

The property is applied to the following object:

Parameters

The property has the following parameter:

Name

Specifies the value of the Name property of the desired driver.

Property Value

A DDTDriver object that provides a scripting interface to the specified driver object.

Remarks

If you use Python or DelphiScript, you should enclose the parameter of the DDT,DriverByName property in square brackets: DDT,DriverByName[Name].

Example

For an example that demonstrates how the DriverByName property is used, see Using DDT Drivers.

See Also

Using DDT Drivers
DDTDriver Object
CurrentDriver Property
Name Property
Data-Driven Testing
Using Scripts for Data-Driven Testing

Highlight search results