Monitor, recover, and configure Agents in the Tosca Distributed Execution Monitor

The Agent View in the Tosca Distributed Execution (DEX) Monitor allows you to manage your Agents

To see the Agent View, open the DEX Monitor and click on Agent View.

Agent View of the Distributed Execution Monitor

You can perform the following actions:

Check Agent status

The status bar at the top of the page displays the following information:

  • Total number of Agents.

  • Agents grouped by status.

The status icon next to each individual Agent on the list indicates the status of that particular Agent:

Icon

Description

Running: The Agent is currently executing.

Idle: The Agent is ready for execution.

Canceling: The current execution is being canceled.

Failed: The Agent is in failure mode. Tricentis recommends that you open the Agent machine and check for possible interferences.

Alternatively, you can try to recover the Agent as described below.

Paused: The current execution is paused, because the Agent is opened for configuration.

Starting: The Agent is getting ready to execute.

The columns in the Agent View display the following information:

Column

Description

Name

Name of the Agent.

Address

Address of the Agent machine.

Actual Result

Execution status of the currently running ExecutionList or the last ExecutionList that ran on the Agent: Passed, Failed, Remaining.

ExecutionList

Name of the ExecutionList that is currently running on the Agent.

Duration

Duration of the execution.

Recover an Agent

If the Agent is in Failed state, you can try to recover the Agent and set it to Idle.

To do so, click on in the row of the Agent that you want to recover.

Configure an Agent

To configure an Agent, click on in the row of the Agent that you want to configure.

This opens the Configuration window, which has the following tabs:

Agent Configuration window

In addition to the modifications you can make in the DEX Monitor, you can specify optional Agent configurations. For more information, see chapter "Optional Tosca Distribution Agent configurations".

Machine tab

The Machine tab of the Configuration window displays the following information:

To change machine-related information, select a value from the respective drop-down menu.

Workspace tab

This tab only applies if you use Tosca Distributed Execution without AOS.

You can modify the following information:

Field

Description

Tosca Workspace

Absolute path to the workspace that the Agent should use for execution.

Tosca User

Name of the user to access the workspace.

Password

Password of the user.

If you use LDAP integration to manage user groups, leave the Tosca user and Password fields empty (see chapter "Synchronize users and user groups with LDAP").

Unattended Execution tab

This tab concerns Unattended Execution.

You can modify the following information:

Field

Optional?

Description

Credentials Source

 

Specify where you keep the user credentials of the Windows user who runs the Agent. To do so, select one of the following values from the drop-down menu:

  • Local, if you want to enter the credentials directly into the Agent configuration.

  • HashiCorp Key vault, if you want to use the credentials that you store in your HashiCorp key vault.

RDP Mode

 

Define which RDP mode you want to run. To do so, select one of the following values from the drop-down menu:

  • On Demand, if Tosca should only open the RDP session during execution and close it after the execution is finished.

  • Always On, if you want to open the RDP session when you start up the Agent and then keep it open. This speeds up Agent preparation time and execution. Agent preparation time because you only have to define your UI session user once, for this session. And execution because the Agent doesn't need to repeatedly open and close sessions during test runs.

Username

 

Enter the username of the Windows user:

  • If your Credentials Source is Local, enter the username.

  • If your Credentials Source is HashiCorp Key vault, enter the path to the username in your key vault: <path to the secret>[<field>]. For instance, kv/tosca_dex/agent/rdp[username].

Password

 

Enter the password of the Windows user. Depending on your Credentials Source, enter the password directly or enter the path to the password in your key vault.

Desktop Width

yes

Change the default width of the remote desktop in pixels. The default value is 1600.

Desktop Height

yes

Change the default height of the remote desktop in pixels. The default value is 1200.

Color Depth

yes

Change the default color depth of the remote desktop. The default value is 16.

Logging tab

In the Logging tab of the Configuration window, you can change the following behavior:

  • The level of detail in the Agent log.

  • The location where Tricentis Tosca saves the log.

To change this, modify the following fields:

Log level

Description

Logfile

Enter the absolute path to where you want to save the log file.

By default, Tricentis Tosca saves the log file ToscaDistributionAgent.log to %TRICENTIS_DEX_AGENT_HOME%.

Level

Select one of the following values from the drop-down menu:

  • ALL: Log all information. Tricentis recommends that you use this level for development purposes.

  • DEBUG: Create a log for Tricentis Support.

  • INFO: This is the default log level. It includes general information, such as when the Agent was started or stopped.

  • ERROR: Log any error which is fatal to the operation and requires action, such as timeouts or failure to establish a server connection.

  • OFF: Deactivate logging.

If you use Tosca Distributed Execution without AOS, Tosca also creates a workspace log. You can change the level of detail of the Agent workspace log as described in chapter "Change workspace log detail".

Restart all Agents

You can restart all Agents simultaneously. This enables you, for example, to apply new update packages for all Agents.

To do so, click the button Restart all in the right upper corner of the Agent View.

Once you click Restart all, all Engines 3.0 are restarted regardless of the current status of your Agents. This might interrupt your test execution. Before you use this feature, ensure that all Agents are ready to be restarted and all crucial test executions have finished.