Frequently Asked Questions

This document answers some of the common queries in mobile testing.

Questions

Answers

  • A 1. Make sure that the device and test workbench are in the same network.

  • A 3. Before you can test a mobile application, the application must first be instrumented. An instrumented application contains the application under test augmented with code that allows you to record or play back a test.

    When you record a test, the Android application (the .apk file) is recompiled into a recording-ready app that has been heavily instrumented to capture user actions. Because Android does not allow two versions of an application to be installed at the same time, the test workbench uninstalls the original application and replaces it with the recording-ready app. When you play back a test, the test workbench uninstalls the recording-ready app and replaces it with a playback-ready app , a version of the original application that has been signed with a test workbench certificate.

    There is also another version of the app, the Tester app. This app contains the runtime code that is needed to replay a test. This app will not be noticeable if you run in silent mode. When the application under test is modified, only the recording-ready app and the playback-ready app are generated. You can simplify this process of installing and uninstalling versions of the Android app by choosing Playback on instrumented from the Settings page on your Android device or emulator. This lets you play back a test using the more heavily instrumented recording version of the app, rather than the lighter weight playback version of the app. This is at the expense, however, of slower playback speed and greater memory consumption.

  • A 4. There could be many reasons. Some of the reasons include:
    • Ensure that the devices and test workbench are connected.
    • Ensure that a supported version of Android SDK is installed on the computer where workbench is installed and point to SDK from Window > Preferences > Test > Mobile and Web UI > Mobile Application Builders.
  • A 5. Ensure that the devices are connected to the test workbench.

  • A 6. The UI elements or actions might not be supported by the product. You can manually add an action to the test script.

  • A 7. Make sure that the adb command-line tool from Android SDK can ping the device when you use this command:>adb devices.

    This command displays the devices and emulators currently monitored by the local adb server.

    If it is listed, select Troubleshooting > Reset Android Debug Bridge server menu item of the USB Controller system tray icon. This will kill and restart the local adb server and potentially fix the issue. If the issue is not fixed, make use of the Quit menu item of the USB Controller system tray icon. It prompts you with a confirmation dialog and explains how to restart it. Press Yes, then follow the steps to restart the USB Controller.

  • A 8. If there is only one compatible device configured with the workbench and set to passive mode, it will automatically be selected. If there are several devices, follow the steps in Defining a variable to run a test with a selected mobile device.

  • A 9. HCL OneTest Studio provides a native browser called mobile web recorder to record and playback web tests. For Android, when you tap Manage Web Applications for the first time, the browser is installed. For iOS, you must install it from the Apple store or from the build archive on an iOS simulator.

  • A 10. Yes. The instrumented application must be produced again from the new version of the app.

  • A 11. Yes, you must re-instrument the app to use the latest workbench runtime code that is embedded in the instrumented application.

  • A 12. While it is not strictly required, not doing so will usually prevent you from making use of the new features of the product.

    For iOS web client, clear the Safari browser cache before browsing the workbench URL. For the native iOS client or testing web applications on an iOS simulator, see Installing the iOS mobile test client.

  • A 13. Yes, you can instrument your app from the command line. For more information, see Automating the Web application testing process in Android.

  • A 14. No, you cannot connect the mobile client to multiple workbenches at the same time.