In order for Rapise to be able to test a thick-client desktop application written using Delphi, it needs to support Microsoft Active Accessibility (MSAA), as described in this article - http://edn.embarcadero.com/article/33642

This article demonstrates how to check your application to see if it supports MSAA.

Steps for Verifying Your Application

Launch your application normally. In this example we shall be using the sample TwoDialogs Windows Application that we know works correctly:

Now start up Rapise, create a new test and choose Basic: Windows Desktop Application:

Next, select the Accessible Spy from the list of SPY options in the main Ribbon:

Now, click on the main SPY button and click CTRL+G to start tracking. When you hover over a field in your application, it should turn red:

Click CTRL+G again to Stop Tracking. You should see something like the following:

If you see something like this (with all the controls enumerated, with a Role and Name displayed) there is a good likelihood that it does support Microsoft Accessibility.

If on the other hand, you don't see the properties displayed above, then it means that your Delphi application does NOT support Microsoft Accessibility, and Rapise will NOT be able to record tests.

Suggestions for Improving Recognition

Here are some suggestions for improving the ability of Rapise to test your Delphi application:

1. Change the Control Display Mode

Delphi's Firemonkey controls have two modes - "styled" vs "platform":
 
 
The Platform option uses native Android/iOS/Windows controls while Styled - the default setting - paints things on a canvas.  The "platform" advantage is better performance and leveraging of a native platform's controls and appearance.  The "styled" advantage is being able to uniformly skin an app.
 
With "styled", Rapise can't detect the control.  But with "platform" Rapise should be able to detect the object.
 
So we recommend for Delphi/C++ FireMonkey apps, that "ControlType must be set to Platform."
 
Attachments

Selected files will be attached to any email sent on saving ticket.

file selected files selected  () Delete Selected

  • Created:
  • by:

Select files to upload

Or drag and drop files here

Uploading …
Done!
Upload More?
There was an error.
Try again?

Save to upload the selected file(s)

Article Info
  • Last Updated: 3/14/2018
  • Article ID: KB331
  • Views: 2445