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:
-
In Quality Center, open the project template.
-
Select Tools | Customize from Quality Center’s main menu.
-
Select the Workflow section and open Script Editor.
-
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")
-
-
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