Optional Tosca Distributed Execution Monitor configurations

You can configure the behavior of the Tosca Distributed Execution (DEX) Monitor:

Change synchronization interval

By default, the DEX Monitor queries the DEX Server every 20 seconds for information.

You can define a different interval. Note that shorter intervals give you more up-to-date information in the DEX Monitor, but increase your CPU usage.

To change the interval, follow the steps below:

  1. Stop the DEX Monitor in the IIS Manager.

  2. On the machine that holds the DEX Monitor, open the appConfig.json file. By default, this file is located at C:\Program Files (x86)\TRICENTIS\Tosca Server\DEXAdmin\wwwroot\assets.

  3. Enter a new value (in milliseconds) for pollingInterval.

  4. Save and close the file.

Example: a synchronization interval of 10 seconds

{
    "baseUrl": "",
    "pollingInterval": "10000"
}

Change number of displayed TestEvents

By default, the DEX Monitor displays a maximum of 10 finished TestEvents.

To change this number, follow the steps below:

  1. Stop the DEX Server in the IIS Manager.

  2. On the DEX Server machine, open the Web.config file. By default, this file is located at C:\Program Files (x86)\TRICENTIS\Tosca Server\DEXServer.

  3. In the applicationSettings section, enter a new value for FinishedEventCount.

  4. Save and close the file.

  5. Restart the DEX Server in the IIS Manager.

Example: display a maximum of 15 finished TestEvents

<setting name="FinishedEventCount" serializeAs="String">
    <value>15</value>
</setting>

DEX Monitor and DEX Server on separate machines

Tricentis recommends that you install the DEX Monitor and the DEX Server on the same machine.

However, you can install them on separate machines.

Do not do this while tests are running. If you do, all currently running and queued tests are lost.

In this case, you have to restart Tosca Server and trigger them again.

To set up DEX Monitor and the DEX Server on separate machines, follow the steps below:

  1. On the machine that holds the DEX Monitor, open the appConfig.json file. By default, this file is located at C:\Program Files (x86)\TRICENTIS\Tosca Server\DEXAdmin\wwwroot\assets (C:\Program Files (x86)\Tricentis\Tosca Server\DexMonitor\Frontend\assets as of Tosca Server Patch 1).

  2. Enter the address of the DEX Server as the value of baseUrl.

{
    "baseUrl": "111.111.1.1:80"
    "pollingInterval": "20000"
}
  1. Save and close the file.

  2. On the machine that holds the DEX Server, open the Web.config file. By default, this file is located at C:\Program Files (x86)\TRICENTIS\Tosca Server\DEXServer.

  3. Enter the address of the DEX Monitor as the value of CORSAllowedOrigins.

<setting name="CORSAllowedOrigins" serializeAs="String">
    <value>222.222.2.2:80</value>
</setting>
  1. Save and close the file.

  2. Restart Tosca Server via the IIS Manager.