With TestComplete, you can test almost any applications, including Microsoft Office InfoPath forms. You can test and fill your InfoPath forms with data in the following ways:
Access form controls as web page elements— Using the Web Testing plugin (this plugin is installed and enabled automatically as part of the TestComplete Web module), you can access the form controls and simulate mouse clicks, keystrokes and other actions over them. For more information, see Testing Web Applications and Simulating User Actions. However, this way is not very convenient since the names of form controls differ every time you run InfoPath.
Access form controls via the
IAccessible interface— Since InfoPath supports Microsoft Active Accessibility (MSAA), its windows and form controls are exposed by the
IAccessible interface. Therefore, you can use the Microsoft Active Accessibility Support plugin (this plugin is installed and enabled automatically if you have a license for TestComplete Desktop module) to access form controls via the TestComplete MSAA engine. This is the preferred way for working with InfoPath forms.
The following topics provide detailed information about testing InfoPath forms with TestComplete: