Set up Network Virtualization integration in Mobile Center

Before you can perform Network Virtualization testing on your mobile device, you need to configure the Mobile Center server.

Integrate with Network Virtualization

Network Virtualization enables you to impose network impairments and constraints on your testing environment, to improve the accuracy of your application testing on mobile devices.

By integrating Network Virtualization with Mobile Center, you can expand your mobile testing to test the effects of networks using:

For more information, see Network Virtualization integration.

Back to top

Choose an NV Test Manager

To perform Network Virtualization testing with Mobile Center, you integrate Mobile Center with an NV Test Manager server.

Your first step is to choose an NV Test Manager server: an on-premises NV Test Manager server or NV on Cloud. When running tests with Network Virtualization, ideally you should use an on-premises NV Test Manager server.

Back to top

Set up the Network Virtualization on-premises integration

Before running your test with an on-premises, local NV Test Manager server, your Mobile Center administrator needs to perform the following:

  1. Open the Administration > Settings > Network Virtualization Integration node.
  2. Set Enable NV integration to Yes.
  3. Set the Use NV on cloud option to No.
  4. Provide all of the information for the communication with the NV Test Manager server. For details, see Network Virtualization integration settings.
  5. Click Verify and Save and wait for a confirmation that the settings were saved.
  6. Proceed to Perform exploratory testing with Network Virtualization.

Back to top

Set up the NV on Cloud integration

Before running your test with the NV on Cloud service, your Mobile Center administrator needs to perform the following:

  1. If the mobile device is behind a firewall, open the NV Cloud IP address and port in the firewall.
  2. Make sure that the AUT server is accessible via the Internet.
  3. Open the Administration > Settings > Network Virtualization Integration node.
  4. Set Enable NV integration to Yes.
  5. Set the Use NV on cloud option to Yes.
  6. Indicate whether communication between Mobile Center and NV is via a direct connection or over an Android device. For details, see Network Virtualization integration settings.

    Note: For the NV on Cloud service, the NV Test Manager server, NV authorization token, NV port, NV proxy port, and NV protocol administration settings do not apply.

  7. Click Verify and Save and wait for a confirmation that the settings were saved.
  8. Proceed to Perform exploratory testing with Network Virtualization.

Back to top

Network Virtualization integration settings

When testing with Network Virtualization, your administrator needs to configure several settings in Mobile Center to complete the integration. Most of the settings apply only to on-premises Network Virtualization testing.

To configure these settings, expand the Network Virtualization Integration section in Mobile Center's Administration > Settings.

The following table describes the Network Virtualization Integration settings:

Setting Description

Communication over device

The following guidelines apply to the Network Virtualization Integration settings:

If the Mobile Center server cannot communicate directly with the NV Test Manager server, enable this setting to instruct Mobile Center to communicate with NV through a connected device.

Mobile Center will first attempt to find a device that is not currently running a test. If no idle device is set up for Network Virtualization, Mobile Center will choose a device running a test.

Note: At least one Android device must be connected. Mobile Center will send the commands to NV through a connected Android device, even if the actual test runs on an iOS device.

NV Test Manager server The IP address or the server FQDN of the NV Test Manager server.
NV port The port through which Mobile Center communicates with the local NV Test Manager server. This port is set during the installation of NV Test Manager, and its default value is 8182.
NV proxy port

The proxy port as configured in the NV Test Manager server. It is used to send traffic from the mobile devices to the NV Test Manager server. You must configure this port on each mobile device running tests with Network Virtualization. The default value is 8888.

NV protocol

The protocol to use to communicate between Mobile Center and the NV Test Manager server. Set this value to HTTPS if the NV Test Manager server is configured to use HTTPS communication. When using HTTPS, you must also install the required certificates. For details, see Install a certificate.

NV authorization token The NV Test Manager username and password encoded in Base64. For information on how to encode this information, see Encode your credentials .
Enable NV integration

Enables the integration with Network Virtualization. Make sure that all of the other settings are configured, and select Yes. Then click Verify and Save to send your settings to the server for verification.

Tip: If you want to save the NV-related settings locally without verification, click Verify and Save before selecting Yes for Enable NV integration. The values are sent to the server for verification only if you save them after enabling the integration.

Back to top

Install a certificate

If you are communicating over a secure channel (HTTPS) with the NV Test Manager server, you will need to install the certificate on the Mobile Center server machine.

  1. Get the certificate in one of the following ways:

    • Download the certificate from:

      <http/https>://<NV Test Manager address>:<NV Test Manager port (default 8182)>/hpenv.cer

    • Go to the NV Test Manager server and copy hpenv.cer from the conf folder. By default, in Windows, this folder is C:\Program Files\HPE\NV\conf. In Linux, the default folder is opt/nv-<version.build>/conf.

  2. Copy the certificate to a location on the Mobile Center server machine.

  3. On the Mobile Center server, open a command line prompt at the following location:

  4. Run the importcert command to install the certificate:

    where <path> is the location of the certificate file you saved earlier.

    • When prompted to enter a password, enter the keystore's password (set during installation).
    • When prompted to confirm, enter yes.
  5. Verify that the certificate was installed properly:

    When prompted to enter a password, enter the keystore's password, that you defined when installing Mobile Center.

  6. Run the uploadCertificates script from the server/Security (Linux) or server\Security (Windows) folders. This script adds the certificate information to the database so that the certificate will be available when you restart the server.

Back to top

Encode your credentials

When accessing the NV Test Manager server, NV uses HTTP basic authentication, which requires a username and password encoded with Base64. You can encode the username and password using one of the following methods:

Back to top

Next steps: