Menu

Install qTest Automation Agent Host 1.3.8 on Windows

In this article, we will walk you through how to install qTest Automation Agent Host version 1.3.8 on Windows machine.

1. Download qTest Automation Agent Host 1.3.8 for Windows

1. Go to this page Download Automation Agent Host and download the qTest Automation Agent Host 1.3.8 for Windows.

2. Extract agentctl-1.3.8-windows-x64-full.zip to C:\agentctl-1.3.8

2. Install and configure the automation agent host

Execute following command to install and configure the automation agent.

C:\agentctl-1.3.8> agentctl.bat config -Phost=[ip_address] -Pport=[agent_port] -Pqtest.url=[qtest_url] -Pqtest.username=[qtest_username] -Pqtest.password=[qtest_password] -Pproxy.enable=true -Pproxy.host=[proxy_host] -Pproxy.port=[proxy_port] -Pproxy.username=[proxy_username] -Pproxy.password=[proxy_password]

Command parameters description:

Parameter Name Description
 config Execute the configuration command
-Phost IP address or host name or domain name of this machine. If this parameter is omitted, localhost will be used
-Pport Specify a port that your automation agent host will be running on. If this parameter is omitted, port 6789 will be used
-Pqtest.url Url of your qTest Manager instance
-Pqtest.username User name used to login to qTest Manager
-Pqtest.password Password used to login to qTest Manager
-Pproxy.enable Possible value is true or false. It the value is true, you will need to provide proxy settings, otherwise, set it to false
-Pproxy.host The IP address or machine name of the proxy server. This parameter is required when -Pproxy.enable parameter is set to true.
-Pproxy.port The port that the proxy server is running on. This parameter is required when -Pproxy.enable parameter is set to true.
-Pproxy.username If your proxy server requires basic authentication, enter user name to authenticate with the proxy
-Pproxy.password If your proxy server requires basic authentication, enter password to authenticate with the proxy

 

Configure qTest Automation Agent Host without proxy

Example command below shows how to configure the qTest Automation Agent Host 1.3.8 in a non-proxy environment. The values for each parameter are highlighted in bold

C:\agentctl-1.3.8> agentctl.bat config -Phost=192.168.76.29 -Pport=6789 -Pproxy.enable=false -Pqtest.url=https://demo.qtestnet.com -Pqtest.username=demouser1@qasymphony.com -Pqtest.password=n0thIng4y0u

Configure qTest Automation Agent Host with proxy settings

Example command below shows how to configure the qTest Automation Agent Host 1.3.8 in a proxy environment. The values for each parameter are highlighted in bold

Your proxy does not require authentication:

C:\agentctl-1.3.8> agentctl.bat config -Phost=192.168.76.29 -Pport=6789 -Pqtest.url=https://demo.qtestnet.com -Pqtest.username=demouser1@qasymphony.com -Pqtest.password=n0thIng4y0u -Pproxy.enable=true -Pproxy.host=192.168.76.138 -Pproxy.port=3128

Your proxy does requires basic authentication with user name and password:

C:\agentctl-1.3.8> agentctl.bat config -Phost=192.168.76.29 -Pport=6789 -Pqtest.url=https://demo.qtestnet.com -Pqtest.username=demouser1@qasymphony.com -Pqtest.password=n0thIng4y0u -Pproxy.enable=true -Pproxy.host=192.168.76.138 -Pproxy.port=3128 -Pproxy.username=proxyuser@qasymphony.com -Pproxy.password=s0mething#0923

IMPORTANT: Add system environment variable

If your PC is running Java 8 whose version is ranging from 1.8.0_77 to 1.8.0_151 (you can find your Java version on Windows here), you must add a system environment variable to make proxy with basic authentication work properly by following below steps.

Add system environment variable on Windows

1. Select Start, select Control Panel, double click System, and select the Advanced tab.

2. Click Environment Variables.

3. In the System variables section, click New. The New System Variable dialog is displayed

4. In Variable Name field, enter: JAVA_TOOL_OPTIONS

5. In Variable Value field, enter: -Djdk.http.auth.tunneling.disabledSchemes=""

6. Click OK to close New System Variable dialog

Below screenshot shows how the new system variable looks like

env-var-windows.png

6. Click OK to close Environment Variables dialog.

3. Start the automation agent host 

To start the agent host, execute start command as below. Notes: If you do not specify -Phostname parameter and value, "Sample Agent" will be used as default agent host name.

C:\agentctl-1.3.8> agentctl.bat start -Phostname="[agent_host_name]"

Example:

C:\agentctl-1.3.8> agentctl.bat start -Phostname="My Agent Host Name"

4. Access to the Automation Agent Host

Open your browser and enter the URL: http://<host>:<port>

  • host: the IP address or host name or domain name that you specified at step #2. If you did not specify the host at step #2, use localhost
  • port: the port that you specified at step #2. If you did not specify the port at step #2, use use the default 6789

5. Install qTest Automation Agent Host as a Windows service

If you want the Automation Agent Host to automatically starts when Windows starts, you should install it as a Windows service.

Run command prompt as Administrator, access to agentctl directory and execute following command to install qTest Automatin Agent Host as a service on Windows

C:\agenctl-1.3.8> install.bat

6. Uninstall qTest Automation Agent Host service

Run command prompt as Administrator, access to agentctl directory and execute following command to uninstall qTest Automation Agent Host as a service on Windows

C:\agenctl-1.3.8>uninstall.bat

 

Subscribe To Our Blog
Powered by Zendesk