Set up Service Virtualization (on-premises)

UFT Mobile's integration with Service Virtualization (SV) supports testing through UFT Developer or Appium tests. This section is relevant only for on-premises deployments of UFT Mobile.

Set up your device

To run an app on a device with Service Virtualization, you need to enable SV for each device as follows:

  1. Enable SV on the devices.

    1. Locate the file, located by default in the UFT Mobile Connector\server\conf folder.
    2. Add the UDID of the devices that will use SV to the SV feature flag. For example:

      DEVICE_LIST_WITH_SV_FEATURE_ENABLED =8a6e6738ttt, 9887fc3159555

    3. Save the file and reconnnect the devices, or restart the UFT Mobile connector.

    When the device is SV enabled, the icon is displayed in the right-hand corner.

  2. Set up the proxy for the device.

    iOS devices:

    Note: The device must be connected over WiFi to the same network as the UFT Mobile connector. Make sure that there are no security requirements that could prevent the connector from being reachable in the network.

    This configuration is handled automatically during plug and play if a device is enabled for SV as per step 1, and is on the same WiFI network as the UFT Mobile connector.

    Android devices:

    1. Open Settings > WiFi.
    2. Do a long press on the WiFi being used, and select Modify Network.
    3. Select Advanced options.
    4. In the IP settings, select DHCP. In the Proxy section, select Manual.
    5. In the Proxy host name enter In the Proxy port enter 6543.
    6. Click Save.
  3. Install the SV certificate file.

    iOS devices:

    1. Download the sv-capture.pem certificate.
    2. Upload the file via a USB cable and select it. This will start the process of installing the certificate as a new profile on the device.
    3. Click Install.

    Android devices:

    1. Download the sv-capture.pem certificate.
    2. Install the certificate in one of the following ways:

      • Upload the file via a USB cable and go to Settings> Security> Credential storage and perform Install from device storage.
      • Send the certificate by e-mail to your phone and open the attachment in your email app.
    3. When prompted, accept the use of the certificate for VPN and apps.

Back to top

Enable the integration

Once you enable SV integration, all apps that you upload will be instrumented for both UFT Mobile and Service Virtualization.

To enable the SV integration with UFT Mobile:

  1. With an admin role, click the Administration button in the right of the masthead, and choose the Settings tab. Scroll down and select the Service Virtualization (SVF) Integration node.
  2. Set Enable SV integration to Yes.
  3. Click Verify and Save.

When you connect a device, UFT Mobile installs both the UFTM Agent and the SV Agent apps onto the device, provided that the device was added to the list of SV enabled devices.

Back to top

Upload apps

After you have enabled SV integration, apps that you upload will be packaged (instrumented) with the SV code. When an app is SV enabled, the icon is displayed in the right-hand corner.

The app card details will indicate which SV capabilities are available, such as Bluetooth and NFC.

Make sure to install the packaged app on the device when using Service Virtualization.

Back to top

Perform SV Simulation

For details, see Use Service Virtualization (on-premises).

Back to top

See also: