Applies to TestComplete 14.70, last modified on October 26, 2020

TestComplete offers a set of functions to work with standard Win32 controls from your tests, including the IP Address control. This control allows you to obtain the IP Address control’s IP address and set it in a text or numeric form.

TestComplete associates IP Address controls with the Win32IPAddress object by analyzing the controls’ class names. The class names of standard IP Address controls are listed in the project’s Object Mapping options. If the tested application uses a custom IP Address control, you can associate it with the Win32IPAddress object by adding its class name to the Object Mapping list.

You can use properties and methods of this object to work with the IP Address control. For example, you can use these properties to set and get the address displayed in the IP Address control. The topics of this section describe how to work with IP Address controls.

Note: Though the following topics deal with scripts, you can use the same approaches while testing an application from your keyword tests. For more information, see Keyword Tests Basic Operations.

In This Section

Getting an IP Address

Describes how to get the address displayed in the IP Address control.

Setting an IP Address

Explains how to set the address displayed in the control.

Clearing the IP Address Field

Describes how to clear the address of the IP Address control.

Related Topics of Interest

Simulating User Actions

Explains the approaches used to simulate user actions over applications’ controls.

See Also

Win32 IP Address Support
Object-Specific Tasks
Supported Controls
Default Project Properties - Object Mapping Options

Highlight search results