Attaching TestComplete Logs to QC Test Runs

Applies to TestComplete 14.50, last modified on April 22, 2021

During the test run, TestComplete (TestExecute) posts information about all the actions it performs to the test log. By default, if your Quality Center project is configured to create a defect when a test fails, Quality Center attaches the TestComplete test log to the created defect. However, if the test run was successful, the test log is deleted. If you need this log even for successful runs, you need to command Quality Center to store the log. You can do this by removing only one symbol from the Quality Center workflow script:

  1. In Quality Center, open the project template.

  2. Select Tools | Customize from Quality Center’s main menu.

  3. Select the Workflow section and open Script Editor.

  4. In the Script Editor, open the script that you use to run TestComplete tests and modify it:

    • Find the following line. There is an apostrophe before TDHelper:

      ScriptFile.WriteLine(" 'TDHelper.UpLoadAttachment fileNameLog, CurrentRun")

    • Remove the apostrophe before TDHelper:

      ScriptFile.WriteLine(" TDHelper.UpLoadAttachment fileNameLog, CurrentRun")

  5. Save the changes.

Now the Quality Center workflow script will always store TestComplete test logs (in the MHT format).

See Also

Attaching TestComplete Logs to QC Execution Logs
TestComplete Connector for HP Quality Center - How To
TestComplete Connector for HP Quality Center

Highlight search results