Visual Accessors for Mobile Testing Enhancements

The implementation for using Visual Accessors in the Mobile Testing IDE has been updated in the AIQ 4.9.4 release to make the functionality easier to use.

Starting / Existing Visual Accessor Capture Mode

  • Right click and select Capture Visual Accessor to start the capture mode.. While in capture mode all other capture options in the context menu are unavailable.

  • At any time you can click Exit Visual Accessor Capture Mode to exit capture mode.

Adding a Visual Accessor to a Test Script

This shows you the basic process to add a visual accessor to a test script.

  1. In the Mobile Testing IDE, create a new test script or open an existing test script.

  2. In the Device tab, right click and select Capture Visual Accessor.

  3. As confirmation, the message “Capture Visual Accessor Mode Activated” displays. The entire application screen is captured.

  4. In the Device tab, select the capture area.

  5. Click Confirm Crop Area to accept the selected region. Click Cancel to exit crop mode. If needed you can exit and then reselect a region.

  6. In the editing window, use the handles to adjust the area used as the target reference.

  7. Once you have adjusted the target area, click Confirm Target Reference.

  8. Click anywhere inside the target area to add a click point.

  9. Click Save.

  10. As confirmation, the message “Target saved successfully” displays.

  11. The visual accessor is added to your test script.

  12. If you hover over the image, the current accessor target, including x, y, w, h, cx, and cy displays.

Example : Visual Accessor in Log File

When running the script, you can verify in the Log tab that the visual accessor you created is being selected correctly. The red highlights show the target region and click point.

Using Visual Accessors on Windows

There is a known issue when using Visual Accessors that only occurs on the Windows platform. If do not see changes that you have made in the IDE, and the IDE is unresponsive, you may need to refresh your browser to see recent changes that you have made in the IDE.

This issue will be addressed in a upcoming AIQ release.