Setting up the HTTP proxy

When you want to run HTTP virtual services on HCL OneTest Server, you can set up an HTTP proxy to route requests to the virtual service. You must configure the HTTP proxy with the HCL OneTest Server URL and offline user token generated from HCL OneTest Server so that the HTTP proxy can register with HCL OneTest Server.

Before you begin

You must have installed the proxy component from HCL® Quality Server of the same version as that of HCL OneTest Server.

About this task

You must edit the registration.xml file that is located in the <QS_install_directory>\httptcp directory for the following attributes:
  • server base-url
  • security-token
You must enter the HCL OneTest Server URL and offline user token as the values for the attributes. After you restart the proxy, the HTTP proxy registers with HCL OneTest Server. You can view the registered intercepts from the Infrastructure > Agents and Intercepts page.

Procedure

  1. Perform the following steps in HCL OneTest Server:
    1. Log in to HCL OneTest Server.
    2. Generate the offline user token.
    3. Copy the offline user token to a text file.
  2. Perform the following steps to edit the registration.xml file that is located in the <QS_install_directory>\httptcp directory:
    1. Use a text editor to open the registration.xml file.
    2. Enter the HCL OneTest Server URL and offline user token generated from HCL OneTest Server in the following setting:
      <server base-url="<HCL OneTest Server_URL>" security-token="<Offline_User_Token>" />
      Note: If an entry exists, you must either comment out that entry and add a new one or replace the contents.
    3. Save and close the file.
    4. Restart the HTTP proxy.
  3. Perform the following steps in HCL OneTest Server:
    1. Log in to HCL OneTest Server.
    2. Click Infrastructure > Agents and Intercepts to view the registered intercepts.

      The HTTP proxies that you configured with your offline user token are displayed.

Results

You have successfully configured the HTTP proxy and viewed that it is registered with HCL OneTest Server.

What to do next

You can perform the following tasks: