Using Devices from Mobile Center through Silk Central

Micro Focus Mobile Center (Mobile Center) provides an end-to-end quality lab of real devices and emulators that help you test, monitor, and optimize your mobile apps for an enhanced user experience.

Note: Silk4J supports testing against devices that are managed by Mobile Center 3.0 or later.

You can either access the devices that are managed by Mobile Center directly from Silk4J, or through Silk Central.

To access the devices that are managed by Mobile Center through Silk Central:

  1. Integrate Silk4J with Silk Central. For additional information, see Integrating Silk4J with Silk Central.
  2. Configure Silk Central to use Mobile Center.
    Note: While installing Mobile Center, ensure that the appropriate Android SDK version is used. Ensure that the same version is used in Silk4J by setting the environment variable SILK_ANDROID_HOME, for example to C:\Users\<user>\AppData\Local\Android\android-sdk. For additional information, refer to the Silk Central Help.
  3. To test on iOS, ensure that the following IPA files are signed:
    • HP4M-Agent.ipa
    • HPMC-AgentLauncher.ipa
    • WebDriverAgentRunner-Runner.ipa
    Note: Silk4J does not support testing iOS simulators through Mobile Center.

In the Select Applications dialog, you can now select the Mobile Center device on which you want to test.

Note: You cannot test the same device with Silk Test Mobile and Mobile Center at the same time. When switching between these products, you need to remove all apps that are used for automation and restart the mobile device.
Android
Before testing an Android device with Silk Test Mobile or before installing Mobile Center, you need to remove the following apps from the device:
  • Appium Android Input Manager
  • Appium Settings
  • io.appium.uiautomator2.server
  • io.appium.uiautomator2.server.text
  • MC Agent
  • Silk Screencast
  • Unlock
iOS
Before testing an iOS device with Silk Test Mobile or before installing Mobile Center, you need to remove the WebDriverAgent from the device.
Mobile Center might re-install some of these apps.
Note: When testing on a device that is managed through the Mobile Center, Silk4J does not support using the methods typeKeys or setText to type key codes like ENTER. Additionally, Silk4J does not support pressing the Home button on iOS devices.
Note: When testing on an Android Emulator, disable the GPU HW Acceleration.