IBM Support

Generate Android SDK-based UI tests for Worklight applications

Question & Answer


Question

Can you generate Android SDK-based UI tests for automated Worklight application testing using the Android plug-in for IBM UrbanCode Deploy?

Cause

Android native applications and Worklight applications use different methods to manage the user interface (UI) and user experience (UX).

Android native applications (as well as iOS applications):

  • Descriptor files, such as layout_main.xml
  • Code, such as Java

Worklight (and hybrid) applications:
  • Descriptor files, such as HTML and CSS
  • Code, such as JavaScript

Answer

You cannot use Android tools to test Worklight applications.

Worklight projects are "websites" that are served from files on the disk of the device, rather than over the Internet from a server. There is no tool that can automatically convert a Worklight project to an Android project.

The Android UI testing tools, such as the Android uiautomater testing framework, do not apply to Worklight applications. You can use any of the standard website testing techniques and tools to test Worklight applications.

[{"Product":{"code":"SS4GSP","label":"IBM UrbanCode Deploy"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations - IBM","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF033","label":"Windows"}],"Version":"6.0.1;6.0.1.1;6.0.1.2;6.0.1.3;6.0.1.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21666817