Qt Testing

The Ranorex Automation Framework fully supports test automation of Qt based applications. To ensure that Ranorex can access UI elements and properties in the Qt application, you need to enable the MSAA (Microsoft Active Accessibility) support of your Qt application, which provides additional information on Qt UI elements to automation software like Ranorex. You do that by shipping and loading the "Accessible Plug-in" included in the Qt SDK (Software Development Kit) with the Qt application under test (see below).

Loading Accessible Plug-in for your Qt application:

  1. Copy the "accessible" directory (and all its contents) from the Qt SDK installation folder to the folder of the automated application (e.g. “Program Files/Your-Application/plugins”). If you do not have access to the Qt SDK which the Qt application is developed with, please contact the developer of the application and request the "accessible" directory from him.

  2. Create a file called "qt.conf" (or append if the file already exists) in the root directory of the automated application (e.g. "Program Files/Your-Application") with following content (copy and paste the following two lines):

    [Paths]
    Plugins = plugins
Qt test automation with Accessible Plug-in
Without Accessible Plug-in
Qt test automation without Accessible Plug-in
With Accessible Plug-in