Use the remote AI service

Install the remote AI service on one powerful computer, providing faster and more effective AI capabilities to weaker UFT One computers.

Overview

Install the remote AI service on a central powerful computer, and connect your UFT One machines remotely to the service. This way, one strong computer provides the AI capabilities for all the UFT One machines.

AI capabilities in UFT One heavily rely on sophisticated computations and involve graphic processing. We strongly recommend that you use a GPU-powered computer for the remote AI service, to optimize the performance of the AI-based functionality. For specific system requirements, see the Support Matrix.

Back to top

Prerequisites

AI Service prerequisites

To be able to use the Remote AI Service, make sure you have the following installed on your remote computer:

  • A 64-bit operating system, Windows 10 or later.

  • Microsoft Visual C++ 2013 Redistributable

  • The required Windows feature, depending on your Windows operating system:

    For the most up-to-date instructions on enabling Windows features, see the Microsoft documentation.

GPU prerequisites

To enable GPU processing in the remote AI service:

  • Make sure your remote computer has a NVIDIA graphics card.

  • Make sure you have the following installed on your remote computer. For installation details, see Install the GPU prerequisites.

    • NVIDIA CUDA Toolkit 11.0 Update 1

    • NVIDIA cuDNN 8.0.2 for CUDA 11.0

Back to top

Install the GPU prerequisites

To enable GPU computing and processing when you are using the remote AI service in UFT One, you must install the required NVIDIA GPU packages, including the NVIDIA CUDA Toolkit and its corresponding cuDNN library.

To install the NVIDIA CUDA Toolkit for Windows

  1. Verify that you have a CUDA-capable GPU. See Verify you have a CUDA-capable GPU.

  2. Download the NVIDIA CUDA Toolkit 11.0 Update 1 from the download site.

  3. Install the CUDA software by executing the CUDA installer and following the on-screen prompts. Alternatively, you can use the silent installation. For details, see Install the CUDA software.

To install the NVIDIA cuDNN 8.0.2 for CUDA 11.0

  1. Make sure you are registered for the NVIDIA Developer Program.

  2. Download the NVIDIA cuDNN 8.0.2 for CUDA 11.0 from the NVIDIA cuDNN home page.

  3. Follow the instructions described in Installing on Windows in NVIDIA cuDNN documentation.

Back to top

Install the AI service on a remote computer

Install the AI service on a remote computer, which is on the same network as your local UFT One computers.

To install the AI service

  1. Download the AI service installation package from the Micro Focus Marketplace, and extract it.

    Note: The remote AI service version must match the version of your local UFT One.

  2. Install the AI service using a wizard or silently using a command line.

    As part of the installation, you can provide a port number. This is the port used for communication between the remote AI service and your local UFT One computers. If you do not specify a port number, 443 is used.

    Install the AI service with a wizard

    Run the setup.exe file and follow the steps as instructed to complete your installation.

    Install the AI service silently
    1. Run the following command to install the prerequisites:

      setup.exe /InstallOnlyPrerequisite /s
    2. Run the following command to install the AI service:

      msiexec /i Remote_AI_Installer.msi /qb PORT=<AI service port number>

To change the port number after the installation

Supported on UFT One versions 2022 and later:

To change the port number after the installation, do one of the following:

  • Log in to Windows as an administrator, Change the Micro Focus AI Service from the Control Panel, and enter a new port number on the wizard.

  • Open the nginx.conf.template file located in <AI Service installation folder>\nginx\conf as an administrator, and modify the port number in line 34. This does not update the port number on the installation wizard.

    Then restart the Micro Focus AI Engine Service in the Control Panel > Administrator Tools > Services to make the setting take effect.

    In Windows 11, Administrator Tools is called Windows Tools.

Back to top

Connect your local UFT One to the remote AI service

To connect your local UFT One to the remote AI service, configure the connection information in the Tools > Options pane. For details, see Configure the remote AI service connection.

If the connection is successful, click OK in the Tools > Options > AI > AI service pane, and then UFT One will use the remote service for AI Features.

Back to top

Secure the communication between UFT One and the remote AI service

UFT One uses the remote AI service to test web applications. Therefore, it is important to secure the connection between UFT One and the remote AI service, preventing inappropriate access to your UFT One computer and Web pages.

By default, the remote AI service communicates with UFT One over SSL with a self-signed certificate. To enhance security, you can set up communication between UFT One and the remote AI service using a CA certificate.

Secure the communication using a CA certificate

  1. Prerequisite: You have a certificate signed by a recognized CA and the corresponding certificate key file.

  2. Save your certificate file and certificate key file to the <remote ai installation directory>\nginx\conf folder on your remote computer.

  3. Open the nginx.conf.template file in the same directory.

  4. Change the values of ssl_certificate and ssl_certificate_key in the nginx.conf.template file to the names of the new certificate files and save the template file.

    server {
    	listen				443 ssl;
    
    	ssl_certificate			cdls-selfsigned.pem;
    	ssl_certificate_key 	        cdls-selfsigned.key;
  5. Restart the Micro Focus AI Engine Service in the Control Panel > Administrator Tools > Services to make the settings take effect.

    In Windows 11, Administrator Tools is called Windows Tools.

Back to top