Previous Topic: How to Create and Replay a Mobile Test CaseNext Topic: Web Browser Testing


Remote Testing

Use remote testing to test physical iOS and Android mobile devices that are connected to a computer at one location, which another computer then connects to from a different location. The availability of remote devices lets you create a testing strategy that can use various operating system and device combinations.

Remote testing lets you run your mobile device tests on various operating system combinations, such as:

Remote testing with DevTest Workstation uses the following process:

  1. Connecting DevTest Workstation from a local machine to the registry, simulator, and coordinator running on a remote machine where a physical mobile device is connected.
  2. Create and successfully verify a mobile asset on the local machine before you run remote tests.
  3. Create a test case on your local machine.
  4. Stage the test case on the local machine, running against the remote machine’s registry, simulator, and coordinator that you are connected to.

Note: You can only run tests on Android devices from a Windows machine. You can run both Android and iOS tests from a Mac machine.

The following procedure explains how to run a remote test for a native application running on an Android device. In this example, the Android device is connected to a Windows machine running the registry, simulator, and coordinator. DevTest Workstation on the Mac machine then connects to the registry, simulator, and coordinator on the Windows machine (or the "remote machine"), as shown here:

Illustration of remote staging between a Mac and a Windows machine

Follow these steps:

  1. Start the registry, simulator, and coordinator on the Windows machine.
  2. Start DevTest Workstation on the Mac machine.
  3. Connect to the registry that is running on the Windows machine. Enter the address of the Windows machine registry in the Set LISA Registry dialog.
  4. Create a new project in DevTest Workstation on the Mac machine.
  5. Copy an .apk file (native Android application) to the Data folder in your LISA project on the Mac machine. You will point your asset Application field to that location for the .apk file. For example:
    Application: <LISA_PROJ_ROOT>/Data/ApiDemos.apk
    
  6. Verify that your local computer contains a successfully recorded test case and a verified asset. If your computer already contains these items, continue with step 10.
  7. On the Mac machine, create an Android Mac native real device asset for ApiDemos.
  8. Verify the asset to 100 percent.
  9. Record and play back a test locally, to verify that both actions succeed on the local machine with the device asset that you created in Step 7.
  10. Right-click the test case, then click Stage Test.
  11. To stage the test, click Play.

You can also use the All test suite functionality to perform remote staging.

Follow these steps:

  1. Right-click AllTestSuite, then Run with DCM tcp://<Connected Registry> to stage the test remotely.

    The Run Suite via tcp://<Connected Registry>/ dialog opens.

  2. Click Stage.

    The tests start on the Mac machine, and the test results are rendered. DevTest Workstation on the Mac connects to a remote registry, simulator, and coordinator running on the Windows machine.

    Note: Verify that your AllTestSuite file contains the items that you are trying to stage (actual tests, MAR files, suites).