Test hybrid apps with UFT

Use UFT with Mobile Center to test hybrid apps on mobile devices. Support for hybrid apps is based on Web test objects.

When testing hybrid apps, make sure to load the Web Add-in in addition to the Mobile Add-in.

Test objects and methods

All Web test object methods are supported when testing hybrid apps, including Swipe and LongPress.

Exceptions include any device (mouse)-related methods, as they are not relevant for mobile devices. These include:

  • Drag

  • Drop

  • MiddleClick

  • RightClick

Use the Click method instead of Tap in steps on hybrid apps, just as you would for a web app.

All steps on hybrid apps must start with Device.App.MobileWebView.Page. For example:

Device("Device").App("MyBank").MobileWebView("MobileWebView").Page("Register for Online Access").WebList("selectedAccountType").Select "Banking Account"
Device("Device").App("MyBank").MobileWebView("MobileWebView").Page("Set up access - MyBank").Image("btn_b_next").Click
Device("Device").App("MC Browser").MobileWebView("Web View").Page("Demo Page").WebButton("Click Here").LongPress
Device("Device").App("MC Browser").MobileWebView("Web View").Page("Demo Page").WebElement("Item Picker").Swipe moveRight, 522

Back to top

Checkpoints and output values

Only the following checkpoints and output values are supported for hybrid apps:

  • Standard checkpoint and output value

  • Page checkpoint

  • Table checkpoint

  • Bitmap checkpoint

  • Text/Text Area checkpoints and output values

Back to top

Advanced configuration

In UFT, most of the options available under Tools > Options > Web are not relevant when testing hybrid apps.

However, it is recommended to not change the settings in the Advanced pane, as this may affect the results of steps run on hybrid apps.

Back to top

See also: