Configure a proxy for the Simulator agent
If the machine that runs your Simulator agent reaches the internet only through a proxy server, the agent needs the proxy details to connect to Tosca Cloud. This topic explains how to add these details to the settings file or pass them on the command line.
If you don't configure a proxy, the Simulator agent uses the proxy configured in your operating system. If your operating system has no proxy, the agent connects directly.
Before you start
Get the following information from your network administrator:
-
The address of the proxy server, including the port number.
-
The username, password, and domain, if the proxy server requires authentication.
Proxy settings
The Simulator agent supports the following proxy settings:
|
Setting |
Description |
|---|---|
|
Uri |
The address of the proxy server. For example, http://proxy.mycompany.com:8080. |
|
Username |
Optional. The username for the proxy server. |
|
Password |
Optional. The password for the proxy server. |
|
Domain |
Optional. The domain for the proxy server. For example, if the proxy server uses NTLM authentication. |
|
UseDefaultCredentials |
Optional. Set to true to authenticate with the credentials of the Windows user who is signed in. If you use this setting, you don't need Username, Password, or Domain. |
Add proxy settings
Choose one of the following options to configure the proxy:
To add the proxy to the settings file, follow these steps:
-
Open the appsettings.yml file in the default installation folder %LOCALAPPDATA%\Tricentis\Simulation.
-
Add the Proxy section. Use one of the following examples:
-
To authenticate with a username and password:
CopyProxy:
Uri: 'http://proxy.mycompany.com:8080'
Username: '<your username>'
Password: '<your password>'
Domain: 'MYCOMPANY -
To authenticate with the credentials of the Windows user who is signed in:
CopyProxy:
Uri: 'http://proxy.mycompany.com:8080'
UseDefaultCredentials: true
-
-
Save and close the file.
To pass the proxy when you start the agent, add the settings as --set parameters. Use one of the following examples:
-
To authenticate with a username and password:
CopySimulator.exe --set Proxy:Uri=http://proxy.mycompany.com:8080 --set Proxy:Username=<your username> --set Proxy:Password=<your password> -
To authenticate with the credentials of the Windows user who is signed in:
CopySimulator.exe --set Proxy:Uri=http://proxy.mycompany.com:8080 --set Proxy:UseDefaultCredentials=true
What's next
Now that the proxy is set up, the Simulator agent can connect to Tosca Cloud. Deploy simulations to your Simulator agent to start simulating your services.