Using Devices from UFT Mobile Directly from Silk4J

Micro Focus UFT Mobile 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 UFT Mobile 3.0 or later.

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

To access the devices that are managed by UFT Mobile directly from Silk4J:

  1. Add UFT Mobile as a remote location. For additional information, see Editing Remote Locations.
  2. 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 UFT Mobile.

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

Note: You cannot test the same device with Silk Test Mobile and UFT Mobile 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 UFT Mobile, 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 UFT Mobile, you need to remove the WebDriverAgent from the device.
UFT Mobile might re-install some of these apps.
If you want to replay tests from a CI server or tests from the command line on a device that is managed by UFT Mobile, you can specify the connection string for the device instead of configuring the remote connection. The connection string should look like the following:
"deviceName=MotoG3;platformName=Android;host=http://<UFT Mobile server>:8080;hostType=MC;userName=<UFT Mobile user name>;password=<UFT Mobile password>"
Note: For security reasons, Silk4J saves an encrypted form of the UFT Mobile password when you create a new application configuration.Micro Focus recommends using the encrypted password in the connection string.
Note: When testing on a device that is managed through UFT Mobile, 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.