Testing Mobile Applications on Android

To test a mobile application on a physical Android device or on an Android emulator, perform the following tasks:

  1. Ensure that you have met the prerequisites for testing mobile applications on Android. For additional information, see Prerequisites for Testing Mobile Applications on Android.
  2. If you want to test the mobile application on an Android emulator, configure the emulator settings for Silk Test Classic. For additional information, see Configuring the Android Emulator for Silk Test.
  3. Start the Android emulator or connect the device to the machine on which Silk Test Classic is installed.
  4. If you want to test the mobile application on a physical Android device that you are using for the first time on this machine, install the appropriate Android USB Driver on the machine. For additional information, see Installing a USB Driver.
  5. If you want to test the mobile application on a physical Android device, enable USB-debugging on the Android device. For additional information, see Enabling USB-Debugging.
  6. Create a Silk Test Classic project for your mobile application.
  7. Create a test for your mobile application.
  8. Record the actions that you want to execute in the test. When you start the Recording window, the Select Application dialog box opens.
  9. To test a mobile web application:
    1. Select the Web tab.
    2. Select the mobile browser that you want to use.
    3. Specify the web page to open in the Enter URL to navigate text box.
  10. To test a native mobile application or a Hybrid application:
    Note: To test native mobile applications or hybrid applications with Silk Test Classic, you require a native mobile license. For additional information, see Licensing Information.
    1. Select the Mobile tab.
    2. Select the mobile device, on which you want to test the app, from the list.
    3. Click Browse to select the app file or enter the full path to the app file into the Mobile app file text field. Silk Test Classic supports HTTP and UNC formats for the path. Silk Test Classic installs the app on the mobile device or emulator.
  11. Click OK. An Android device or emulator must not be screen-locked during testing. To keep the device awake while it is connected to a machine, open the settings and tap Developer Options. Then check Stay awake or Stay awake while charging.
  12. Use the Recording window to record the test against the mobile application. For additional information, see Recording Mobile Applications.
  13. When you have recorded all the actions, stop the recording.
  14. Replay the test.
  15. Analyze the test results.