TestComplete 3 FAQ. Working With Results
This page contains answers to frequently asked questions about TestComplete 3. For answers to questions about TestComplete ver. 4 - 6, see TestComplete 6 FAQ.
Q.: When the test is over, TestComplete displays the Test Log panel. Is it possible to change this behavior?
A.: Open the Test Log Options dialog (Options | Panel Options or Options from the Test Log context menu) and disable the Activate After Script Run option.
Q.: How can I take test results from TestComplete and send them to developers or to my boss?
A.: TestComplete holds the test results in the Results subfolder of your project folder. Results are stored in xml, xsl and .htm files. Each testing result is stored in a separate subfolder. Three files in the Results folder - <project_name>.htm, <project_name>.xsl and <project_name>.xml - hold the contents of results. Thus, you can simply archive test results and send the archive to your boss. He can review the results in Internet Explorer or any xml-viewer. If you need to send the project suites results, use the <project_suite_name>.xml and <project_suite_name>.xsl files located in the folder of the project suite.
Note that you can save the results to another folder, right-click the upper table in the Test Log panel and select Save As or Save Selection As from the context menu.
Q.: Why do the results load slowly in Internet Explorer?
A.: Unfortunately, the XML parser of Internet Explorer is too slow. As a result, it takes a lot of time to open large XML files with the browser. You should use the Log.LockEvents method in your scripts to decrease the size of results: the Test Log panel will not contain event messages after the script execution.
The Log.LockEvents method has a parameter that equals 20 by default. It specifies the number of event messages that will be kept in the buffer. If an error occurs, these messages are posted to the Test Log. Please read the "Log.LockEvents" help topic to learn more about this method. You can also browse large results in TestComplete 3.0 using the Load Results command of the Test Log panel’s context menu: right-click somewhere in the Test Log panel to invoke the menu, and then select the Load Results menu item.
Q.: My test log is too large. Is there any way to decrease the amount of messages?
A.: Yes. You can lock event messages. For this purpose, use the Log.LockEvents method --
Log.LockEvents(...) // Event messages
are not posted to the log
Log.UnlockEvents() // Event messages are posted
to the log
