Setting up the HTTP proxy
When you want to run stubs on HCL OneTest™ Server, you can set up an HTTP proxy to route requests to the stubs. 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
Before you set up the HTTP proxy, you must ensure that you have installed the proxy component from HCL Quality Server V10.1.1 or later.
About this task
When you create stubs in HCL OneTest™ API, you must configure the HTTP proxy in the Client tab for the HTTP transport. You must also edit the registration.xml file that is located in the <QS_install_directory>\httptcp directory for the following
attributes:
- server base-url
- security-token
Procedure
-
Perform the following steps in HCL OneTest™ Server:
- Log in to HCL OneTest™ Server.
- Generate the offline user token.
- Copy the offline user token to a text file.
-
Perform the following steps to edit the registration.xml file that is located in the <QS_install_directory>\httptcp directory:
-
Perform the following steps in HCL OneTest™ Server:
- Log in to HCL OneTest™ Server.
- Open your project.
- Click Infrastructure.
The HTTP proxies that you configured with your offline user token are displayed.