Set up logging for test execution with Tosca Distributed Execution
If you use Tosca Continuous Integration with Tosca Distributed Execution, you can configure one or all of the following logging options:
-
A log for all activities of the Tosca Continuous Integration Client (Tosca CI Client), such as when it starts or finishes the execution of your tests.
-
A Tosca Distribution Agent log, i.e. a protocol of activities concerning the Tosca Distribution Agent.
To change the level of detail the Tosca Distribution Agent log records and where the log is saved, see chapter "Tosca Distribution Agent log".
-
An Agent workspace log, i.e. a protocol of activities concerning the workspace that runs the Tosca Distribution Agent. This log is only created if you use Distributed Execution without AOS (Automation Object Service).
To change the level of detail in your workspace log, see chapter "Agent Workspace log".
-
A log file that logs all activities of the Tosca Distribution Server, such as when an agent registers with the server or when TestEvents are distributed.
To change where the server log file is located, see chapter "Change the path of the server log file ".
Set up the Tosca CI Client log
You can change what information the Tosca CI Client log records.
By default, the Tosca CI Client log records on INFO level. To change this, follow the steps below:
-
Access the the ToscaCIClient.exe.config file which is located at %COMMANDER_HOME%\ToscaCI\Client.
-
In the log4net section, adjust the root setting level value. You can define one of the following values:
Value |
Description |
---|---|
ALL |
Includes all information. Use this level for development purposes. |
DEBUG |
Creates 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 |
Logs any error which is fatal to the operation and requires action, such as timeouts or failure to establish a server connection. |
OFF |
Logging is deactivated. |
<log4net>
<root>
<level value="INFO" />
<appender-ref ref="LogFileAppender" />
<appender-ref ref="ConsoleAppender" />
</root>
[...]
</log4net>
Tricentis Tosca saves the log file ToscaCIClient.log to the directory %COMMANDER_HOME%\ToscaCI\Client.