

Then they call helper routines that perform full expanding (collapsing).First, they set the Log.Enabled property to False in order to disable posting messages to the test log.The ExpandAllItems and CollapseAllItems routines are used to expand and collapse, respectively, all items in the specified TreeView control.It obtains the tested application and its tree view control and calls the ExpandAllItems and CollapseAllItems routines to expand and then collapse all tree view items. The example contains the following routines: This topic describes various approaches that let you expand and collapse items in standard Win32 tree view controls. TestComplete can record and play back expanding or collapsing of tree view items. For more information, see Keyword Tests Basic Operations. However, when testing a control from your keyword test, you can use the same methods and properties calling them from keyword test operations. This topic describes how to work with the needed properties and methods from your scripts. You can call these methods and properties from your keyword tests,Īs well as from scripts. While testing tree view controls, you can use specific properties and methods of the corresponding program object to perform certain actions and obtain data stored in controls. Child items are displayed when their parent item is expanded and hidden when the item is collapsed. Each tree view item can have a number of child items, which are indented below this item.

Tree view controls display a hierarchical list of items.
