AutomatedQA: Award-winning tools for software testing and quality assurance

Home » Products » TestComplete » FAQs » Miscellaneous

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:

You created a TestComplete project that contains an ActiveX control on one computer. Then you moved this project to another computer where this ActiveX control is not available.
You removed a .tlb file from the folder of your TestComplete project while one of the forms of this project contained the ProjectEvents control.
Your project (for example, ProjectA ) uses a unit that has a form with the ProjectEvents control and this unit is from another project (for example, ProjectB). ProjectB has the Options | Engine Options | Project Events | Unregister ProjectEvents option enabled. As a result, the ProjectEvents control is unregistered when ProjectB is closed, which makes the control inaccessible. If you do not use this control, you can remove the form (delete the .fd file). Otherwise, open ProjectB, uncheck the Unregister ProjectEvents option and close it. ProjectA should now open without this error message.

Back to list

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.

Back to list

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.

Back to list

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.

GotoMyPC
Shell+ components for Borland Delphi
TPHKMGR.EXE (it is installed on IBM ThinkPad laptop computers and helps activate the custom "ThinkPad Help" key as well as the Audio (volume up/down/mute) keys located on the laptops.)

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.

Back to list

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.

Back to list

Copyright © 1999-2009, AutomatedQA, Corp. All Rights Reserved.
Home | Legal | About | Contact | Site Map | Print