Created By  inflectra.adam Monday, October 7, 2013

Simulated objects are found by looking at the parameters of the object (x number of pixels from the top of the window, y number of pixels from the left of the window, etc).  One common question that has arisen is - during playback, does Rapise take into account screen resolution?  If the resolution on the computer you run it on is different from the one it records on the location of the object will change relative to the number of pixels.  So on the computer you record it on the top parameter might be 200 but on a different resolution it might be 180.  Would Rapise recognize that the resolution is different and adjust for that?

In general, Simulated objects are considered a black box where Rapise cannot make any firm assumptions. A good example is Canvas where the application draws something (it may be text, graphics etc). Rapise may learn how to reach the canvas object , but it is not able to identify the objects inside.

Canvas may be flexible, information in it may depend on system DPI, screen resolution etc. So there are two approaches for such situations:

  1. Try to look inside canvas. The canvas may be an applet exposing some UI Automation technology (such as flash etc) and there may be APIs to read it.
  2. Try to fix the environment. For instance, make application full screen before test execution. Make sure screen size is the same.

    In addition to these 2 approaches there is plenty of possible workarounds available for specific situations. For example, sometimes we cannot grab information from an <img> element but we may take it from alt="..." attribute or from src.
Article Info
  • Last Updated: 10/7/2013
  • Article ID: KB59
  • Views: 3833