Log Viewer

The Tricentis Tosca Log Viewer allows you to monitor the execution of TestCases. You can filter out relevant log information, save reports, and track the execution of your TestCases in real-time.

Start the Log Viewer

You can find the Log Viewer in two different Tricentis Tosca directories:

  • %COMMANDER_HOME%

  • %TBOX_HOME%

Each of them has a separate configuration file, which you can modify.

To start the Log Viewer, navigate to one of its directories and enter the following prompt at command line:

LogViewer.exe [<log level>] [pause]

  • Replace <LogLevel> with one of the available log level values listed below.

  • The parameter pause is optional. It hides the log information in the UI. If you expect your TestCases to log large amounts of data, use this parameter.

Available log level values

Value

Description

all

Log Viewer logs every event.

off

Log Viewer doesn't log any data.

error

Log Viewer logs errors, warnings, execution information, and debugging data.

warn

Log Viewer logs warnings, execution information, and debugging data.

info

Log Viewer logs execution information and debugging data.

In this example, you start the Log Viewer with the log level info without any log information in its UI.

Launch the Log Viewer with the command prompt

Navigate the Log Viewer

The Log Viewer window shows an overview of log events.

Additionally, the ribbon menu in the Log Viewer window allows you to perform the following actions:

  • Change the current log level. To do so, click on the log level in the menu and select a new one from the drop-down menu.

  • Navigate to the log Files.

  • Clear all log events in the Log Viewer window.

  • Save your current log events to a file.

  • Use Chrome Trace to save a JSON file which you can use with Google Chrome's tracing event profiling tool.

  • Navigate through errors using the Previous Error or Next Error buttons.

  • Find text or regular expressions in your log data by using the search box. Navigate through search results with Prev or Next buttons, or toggle Regex to look for regular expressions only.

  • See the current amount of errors and log events.

Switch log levels

Manage your log files

Tricentis Tosca automatically saves your log files to the following directory:

%TRICENTIS_ALLUSERS_APPDATA%\logs\Automation\Log4net-log.txt

If you want to save your log files to a different directory, you can edit the respective Log Viewer configuration file:

  • LogViewer.exe.config which is located in %COMMANDER_HOME%.

  • LogViewer.exe.config which is located in %TBOX_HOME%.

For information on additional logging configuration options, see the Log4Net Documentation.