Install and configure UFT Mobile Dev Access Plugin
The Dev Access plugin (Android) and app (iOS) provide a user-friendly interface for connecting to and interacting with devices in the UFT Mobile lab, from within your integrated development environment (IDE). Instead of connecting to local physical devices or emulator, UFT Mobile Dev Access allows you to connect to a complete Lab of devices with different operating systems, devices modes & types. This increases the experience for a developer working from windows, Linux or Mac.
Detailed Information on Dev Access can be found here (for iOS & Android): https://admhelp.microfocus.com/mobilecenter/en/3.3/Content/Dev-access.htm
In this article, we will use the following system components:
- Windows 10
- IDE: IntelliJ 2019.03
- UFT Mobile is on Windows Server 2016
- Connecting Android Device
Step 1: Download Android Platform Tools
In order to work with Android, we need to install the android platform tools. These tools are required for Android app development.
Download the correct SDK Platform Tools for your operating system. In this article, we have used Windows as the operating system. After download, extract the files somewhere on the development machine.
Step 2: Make sure you can connect to UFT Mobile
In order to connect to UFT Mobile lab, make sure you can access UFT Mobile from any browser of your choice. Just open browser and enter the UFT Mobile url (http[s]://<uftm-server>:<port>).
Step 3: Install UFT Mobile plugin for IntelliJ
This plugin allows you to easily connect UFT Mobile lab devices to your IDE, for debugging, and to view and control them remotely. Search for the plugin directly from your IDE – goto File > Settings > Plugins and search for “UFT Mobile“. Select the plugin and click on Install. After Installation your IDE will restart. Once restarted, check the plugin was installed. To do this, go to View > Tool Windows > UFT Mobile from your IDE.
Step 4: Get API Access for UFT Mobile
In order to establish a connection to UFT Mobile, you need to have an API Access Key. You can generate this API Access Key in your UFT Mobile. To get an API Key,
- Login to UFT Mobile
- Goto Settings > API Access and click on + Generate new
- Save the key in a file, so in case you need it again, you can look it up.
Step 5: Configure the initial setting and connect to UFT Mobile
After everything is prepared and installed, go to your IDE and open the UFT Mobile tool window.
Click on Settings and enter the following:
- URL of UFT Mobile Lab Server, format http[s]://<uftm-server>:<port>
- UFT Mobile Server API Key, i.e. “client=oauth2-WFGujYpKlq8sadasd2Wv@microfocus.com; secret=35asdwq1324dsf12L2a2K; tenant=919219959;”
- Proxy if needed
- ADB Execute able – the extracted download from step 1. You need to point to the adb.exe file
After the data is entered, click on Log in to connect to UFT Mobile.
Step 6: Connect to Android Devices
After logging into UFT Mobile, you now need to Enable the UFT Mobile Dev Access under the Tab Devices. Select a workspace if needed and select the device you want to connect to from the devices list in your IDE.
After the successful connection, you will be redirected to the Remote Viewer, which is embedded in your IDE and have full access to the Device you connected with using UFT Mobile.
Happy mobile testing.
Watch the configuration video on youtube: