TestComplete 3 FAQ. Miscellaneous
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.: Why does the error message "Error reading ProjectEvents1.CGUID: class not registered" appear?
A.: This error message can occur because of any of the following:
Q.: I copied the whole folder containing everything I created, including test scripts and results, to a new location on the network. When I opened the script from the new location in TestComplete, I noticed that no local values were assigned to the project variables and the logs had disappeared. Why did this happen? How can I fix it?
A.: When you work with a project in network mode, your personal settings (including local values of project variables) are stored in a separate .cfg file and the results you get when running scripts are stored in a separate folder. The path to the Results folder is kept in the .cfg file, and the path to the .cfg file is kept in the project_file_name.net file. When you copy the project folder to a new location, the path to your personal .cfg file is changed and as a result you do not see the local values of the project variables (they are saved to the .cfg file) and cannot view old results. To fix the problem, you need to open the project_file_name.net file, find the section [your_computer_name] and correct the path to the old .cfg file - it is specified by the CfgPath attribute.
Q.: How can I specify a national character set for the Editor font?
A.: Open the Editor Options dialog (Select Options | Panels Options from TestComplete's main menu or choose Options from the Editor context menu). Then press the Display ellipsis button. This will open the Display Options dialog. Open the Display tabbed page of the dialog and select the necessary character set from the Character Set combo box.
Q.: I'm having issues using the Record (Shift + F1) functionality in TestComplete. The recording toolbar pops up and then my UI completely locks up and all I can do is ctrl-alt-del to break out of it. I haven't been able to pin-point the circumstances of when/why it locks up. What's wrong with TestComplete?
A.: TestComplete sets the Windows journal hook when it starts recording keyboard and mouse events. More than likely, one of your programs (maybe the print spooler service or one of applications listed below) conflicts with the journal hook. If so, you need to terminate that program before recording scripts with TestComplete.
To check whether the problem arises due to the conflict with the journal hook, download a program using the link below, unzip and launch it, click the Journal hook checkbox and see if the system behaves the same way as it did when TestComplete was in recording mode: http://www.automatedqa.com/downloads/tools/journalhook.zip.
Also, there is no need to kill TestComplete via the Task Manager when it locks up due to that journal hook conflict: it is possible to reset the journal hook by pressing Ctrl+Alt+Del or Ctrl+Esc.
Q.: My scripts require unique data in the database. However, repeating tests repeats the data. Should I save the database before testing and restore after, or should I delete records after the test?
A.: You can make your data pseudo-unique by adding the current date and time or random numbers.
