Skip to main content

Command: Save as HTML

Function: The command saves the open test report as an HTML file.

Call: Save as HTML button in a test report

Requirement: A test report is open, for example after a test run with Execute Script.

Where the test report is saved depends on the settings in the Manage Test Reports dialog:

Setting

Behavior

An existing directory is specified in Location.

The test report is saved in this directory without a prompt.

No directory specified, or the directory does not exist

A dialog for selecting the target directory will open.

The Always prompt user where the HTML report should be saved option is selected.

The dialog for selecting the target directory always opens.

If you select a directory in the selection dialog which is not empty, then a warning is displayed: Existing files could be overwritten.

The HTML file gets the name of the test script without the folder. Example: The test report of Examples.ApplicationTest is saved as ApplicationTest.html. After saving, a message shows the full path.

Important

If a file with the same name already exists in the target directory, then it is overwritten. This also applies to earlier test reports of the same test script.

Tip

If you close a test report which has not been saved yet, then a prompt to save it is displayed. You can turn off this warning in the Manage Test Reports dialog by clearing the Warn before closing unsaved reports option.

For more information, see the following: Dialog: Manage Test Reports, Command: Execute Script