TestComplete offers a set of functions to work with standard Win32 controls from your tests, including the UpDown control. This control consists of a pair of arrow buttons and is used with an associated EditBox control. An UpDown control and its associated control look like a single control. You can change (increment or decrement) the value, such as the number displayed in the associated control, by clicking the arrow buttons of the UpDown control.
To work with Win32 UpDown controls, TestComplete uses the
Win32UpDown object. This object is automatically associated with UpDown controls whose class names are listed in the project’s Object Mapping options. If your tested application uses an UpDown control that is inherited from a standard UpDown control, you can associate it with the
Win32UpDown object by adding its class name to the Object Mapping list. For more information, see Default Project Properties - Object Mapping Options.
Using properties and methods of the
Win32UpDown object, you can work with the UpDown control. For instance, you can use the properties to set and get the current value displayed in the associated control. The topics of this section contain detailed information on how to work with UpDown controls in TestComplete and contain script samples that illustrate the explanation.
|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.|