Managing Log Files

Applies to TestComplete 15.63, last modified on April 23, 2024

Test logs contain detailed information on test runs. The results of each test run are stored in log files. TestComplete projects store these files so that you can view the results and analyze them at any time. This topic describes how you can manage your log files to work with them effectively.

Limit the Number of Log Files

By default, TestComplete stores all log files, that is, the number of log files equals the number of test runs. The log files consume disk space. If you do not need to keep all the log files, you can limit their number by setting the Number of recent logs to keep option. In this case, newer log files will push out older ones when the number of log files exceeds the specified limit. To set the limit:

  1. Select Tools > Options from the main menu.

  2. Select Engines > Log from the tree on the left.

  3. In the Storage section, clear the Store all logs check box.

  4. Set the Number of recent logs to keep option to the number of logs to store in your project.

    Limit the log number

    Click the image to enlarge it.

TestComplete will delete both references to files and the files themselves, so if you want to store test results, you should export them. You can import the saved copy of results to your project at any time later.

Clear the Log Manually

All the logs are shown under the Project_Name Logs (ProjectSuite_Name Logs) node in Project Explorer. To delete a log item manually, right-click it and select  Remove from the context menu:

Remove a log file

Once you do this, TestComplete will ask you whether you want to Remove or Delete the log file:

  • Remove – Removes the selected item from the parent item but keeps the corresponding file.

  • Delete – Deletes the log file from the disk completely.

When you command TestComplete to delete log files from you project or project suite, it asks for a confirmation to delete them from the disk. If you decide to remove the files, you can later import them to the project. If you delete the files from the disk, they will be placed in the Recycle Bin and you can restore them later.

The “Don't move files to the Recycle Bin. Remove files immediately when deleted” Recycle Bin option must be disabled to restore the files deleted from the disk.

To delete all the project logs, right-click the Project_Name Logs (ProjectSuite_Name Logs) node in Project Explorer and select Clear Log Files from the context menu.

Clear all log files

More Operations With Log Files

Import

Rename

See Also

Test Results
Exporting Test Results

Highlight search results