Table of contents
Official Content

UI testing is available using native GeneXus programming, through a specific object in the GeneXus IDE called UI Test object

For example, consider the following UI Test object:

image_20191024165445_1_png

The variable named &app is autogenerated and provides automation capabilities over the target device. It is based on the UITestSD external object:

image_20191024165624_1_png

The UITestSD external object is responsible for implementing the adaptation layer over the device. It offers several methods for actions and verifications to be made in the UI Test.

image_2019123143118_1_png

The Test Target property of the UI Test object must be set to indicate the main object of the application to be tested (in the example: "MainSD").

Build & Run the UI Test

There are two ways to run an UI Test object:

image_2019123142533_1_png

Or

image_2019123142653_1_png 

Notes:

  • For running UI tests on Apple platforms you need to install the library xcpretty.
  • UITests are designed with the purpose of evaluating the application components, without focusing on the visual interface. For this reason, during their execution, the device animations are disabled as a preventive measure against incorrect results, commonly called 'flaky tests'.

Sample

KG GxTestSample

See Also

Android UITest Log

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant