Running Worklight hybrid tests on either Android or iOS mobile test client

To test Worklight® hybrid applications, you can record a test on a mobile device or simulator where the native Android or iOS mobile test client is installed and run the same test on either platform.

Before you begin

You must import the application that you want to test into the test workbench for both platforms Android and iOS. The same version is required. You must record and generate a test. For more details, see Recording tests from the Android mobile test client or Recording tests from the iOS mobile test client.

Procedure

To run the test:

  1. Tap Manage Applications and tap the application under test.
  2. Tap refresh so that the test shows up in the list of tests.
  3. Open the test. The device displays details on the test. Tap Run Test. Do not interact with device until the test is complete.

What to do next

When the test is complete, you can see the report on the device. For more information, see Evaluate results for details. Buttons, labels, button clicks, and their associated text properties are supported on both platforms. When a native step cannot be translated and run on the other platform, as is the case for the Android back button, for example, a yellow warning advises you in the report that this Android step cannot be translated and run on iOS because this may cause a test failure.

Feedback