Connecting a Docker performance agent to Test Hub
You can run a Performance agent in Docker container and connect it to Test Hub.
Before you begin
You must have the following details to connect
the Docker performance agent to Test Hub:
TESTHUB_SERVER: Server host name.TESTHUB_TOKEN: Offline user token that is obtained in following context.TESTHUB_PORT:443TESTHUB_TEAM_SPACE:InitialTESTHUB_PATH_CONTEXT: Server API context path.Docker_Image: Download the HCL_DT_AGENT_<version_number>_DOCKER_IMG.zip file from My HCLSoftware and refer to README document in the zip file to load the docker image hcl-devops-test-performance-<version_number>.tar.
Procedure
- Log in to Test Hub.
-
Click the User icon
, and select the Create Token
option.
The token is generated automatically and displayed in the Create Offline User Token dialog. - Click Copy to copy the token and save it in a secure location.
-
Run the following command where the Docker image of the performance agent is
located:
TESTHUB_SERVER=my_test_hub.hclpnp.com TESTHUB_TOKEN=eyJhbGciOiJIUzUxMiIsInR5cCIgOiA TESTHUB_PORT=443 TESTHUB_TEAM_SPACE=Initial TESTHUB_PATH_CONTEXT="/test" docker run --detach --name Test_performance_agent_docker \ --env TESTHUB_SERVER=$TESTHUB_SERVER \ --env TESTHUB_PORT=$TESTHUB_PORT \ --env TESTHUB_TOKEN=$TESTHUB_TOKEN \ --env TESTHUB_TEAM_SPACE=$TESTHUB_TEAM_SPACE \ --env TESTHUB_PATH_CONTEXT=$TESTHUB_PATH_CONTEXT hcl-devops-test-performance:11.0.3 - Go to and verify whether your agent is connected to Test Hub.
-
Run the following commands to stop and remove the Docker container:
docker stop <assigned_name_of_the_container>docker rm <assigned_name_of_the_container> -
Run the following command to view all the help options and available
environment variables:
docker run --rm hcl-devops-test-performance:11.0.4