Exporting Test Results

Applies to TestExecute 14.72, last modified on January 12, 2021

When running your cross-platform web tests in parallel from command line, specify where to store the test results explicitly. Unlike ordinary (sequential) test runs, the test results will not be added to the project’s Log folder automatically.

Note: If you run your tests from Jenkins by using the TestComplete Support plugin or from Azure DevOps by using the TestComplete test adapter, your test results will be added to your build results automatically. See the appropriate topics. To learn how to export your test results to another location (for example, to a folder on a shared network drive), see the sections below.

TestComplete project

Unlike sequential test runs, parallel tests do not add test results to the TestComplete project automatically. You have to do it explicitly by using the /ForceLogIntoProject command-line argument:

TestExecuteLite.exe "C:\My Projects\MySuite.pjs" /p:MyProj /ForceLogIntoProject

It will add the test log to the Log folder of the project to which the executed test belongs. You can open the project in TestComplete and view the test results.

If you store your test results to the TestComplete project, you cannot export the test results to an external file.

External file

HTML

You can export test results to an HTML page. The exported results will include images, scripts, styles, and helper data files that contain the results data:

Use the /ExportLog command-line argument:

TestExecuteLite.exe "C:\My Projects\MySuite.pjs" /p:MyProj /exportLog:"C:\TestLogs\Log.html"

The .htm extension is also supported.

It will export the entire test log to the specified file. For more information on the command-line arguments, see Running Tests in Parallel from Command Line.

MHT

You can export test results to a single MHT file that contains the web page and all accompanying files:

Use the /ExportLog command-line argument:

TestExecuteLite.exe "C:\My Projects\MySuite.pjs" /p:MyProj /exportLog:"C:\TestLogs\Log.mht"

It will export the entire test log to the specified file. For more information on the command-line arguments, see Running Tests in Parallel from Command Line.

tcLogX

You can export test results to a file of the .tcLogX format. It is a TestComplete native file format that contains all the test log data.

TestExecuteLite.exe "C:\My Projects\MySuite.pjs" /p:MyProj /exportLog:"C:\TestLogs\Log.tcLogX"

To view results exported to the .tcLogX format, import them into a TestComplete project.

JUnit-style reports

In addition to exporting test results to an external file or to storing them to the project, you can also export them to a JUnit-style report. To do this, use the /ExportSummary command-line argument:

TestExecuteLite.exe "C:\My Projects\MySuite.pjs" /p:MyProj /ExportSummary:"C:\TestLogs\report.xml"

If there are test cases specified for the run, their results will be exported. If no test cases are specified, the results of executed tests will be exported instead. For example, if you run a script routine that is not marked as a test case, exported results will include the routine log.

See Also

Running Cross-Platform Web Tests in Parallel

Highlight search results