Limiting the Number of MSAA Child Objects

Applies to TestComplete 15.68, last modified on October 03, 2024
Information in this topic applies to desktop applications only.

By default, the Microsoft Active Accessibility Support plugin exposes all objects of your application that implement the IAccessible interface. If the number of objects is large, adding them to the Object tree may take some time and slow down the test execution.

To work around the problem, you can specify the /MSAAMAXCHILDCOUNT:value command-line argument for the application under test, for instance, /MSAAMAXCHILDCOUNT:40. TestComplete checks the application’s command line and if it finds this argument, it uses the argument’s value to limit the number of child objects exposed by the Microsoft Active Accessibility Support plugin. If the number of the exposed child objects is greater than the specified value, then TestComplete considers that the given MSAA object has no child objects. If the number of MSAA child objects is less than or equal to the value, they are added to the Object tree. So, the argument lets you hide the child MSAA objects if you do not need them and, thus, speed up your test execution.

The MSAAMAXCHILDCOUNT command-line argument is only effects the objects exposed by the Microsoft Active Accessibility Support plugin. It does not effect applications’ objects exposed by other TestComplete plugins and subsystems.

See Also

Using Microsoft Active Accessibility
About Using Microsoft Active Accessibility

Highlight search results