I'm evaluating a trial version of TestComplete and it looks like a suitable solution for our needs. But I have a couple of problems with it...
1) Problem with recording of mouse activity.
For example, I record a simple script where File Open dialog is activated by mouse. But on script running TestComplete waits for this window to appear and doesn't emulate mouse activity. At the same time, there are no such problems with recording keyboad events.
2) Launching Open Applications.
I've created a special build of our application that meets requirements of Open Applications according to TC's documentation. But TestComplete says that it cannot find "VCClientWrap6.dll" when launches application. It seems that this file is an important part of "opening" of application.
[Launching Open Applications]
There are two ways to start applications. Depending on your app. Try both.
Method 1 - Listing the applications in File -> Tested Applications and then using the TestedApps.RunAll command.
Method 2 - More complex but a solution provided by Test Complete themselves.
You can run a new instance of Internet Explorer instance using the WinExec function of Win32 API. You can find more information about this function in the MSDN Library: http://msdn.microsoft.com/library/de...se/winexec.asp
Note: the Win32 plug-in should be installed on your computer. You can see if it is in the Extensions dialog (File | Install Extensions...). Please follow the link for details:
This process will be the first child of the Sys object and therefore you can easily get it with the Sys.Child method. You can use the following script to get the launched Internet Explorer process.
Win32API.WinExec('C:\Program Files\Internet Explorer\IEXPLORE.EXE', SW_SHOW); // Run and activate IE
Sys.Children; // Refresh the Object Browser
p := Sys.Child(0); // Get the first process
Unfortunately, it doesn't help. TestComplete only inserts delays in the script.
The thing is that mouse events are not recorded. For example, if I do the same things with keyboard then I see in script strings with " Sys["Keys"]("~f");" that emulates keyboard events. For mouse there is nothing generated.
There are no problems with launching. Application is launched, but on launching a dialog with error that "VCClientWrap6.dll" file is not found. And it is indeed that there is no such file on disk.
I guess that this file is important and hence it's absence means that I can't access "opened" data.
Emulating Mouse Movements:
Can you get what you need by using the Low-Level Record functionality? Start a record session and then click on the Low-Level Record button of the Recording toolbar. Select the Low-Level Recorder tab to see the generated statements. If you post some of your code maybe someone here can help with modifying it so that there are no dependencies on the mouse at all. This method is much more stable and easier to distribute.
I have searched one of our machines which has the TC 3 trial installed and I have searched one of our machines which has TC 3 Enterprise installed. I did not find the VCClientWrap6.dll file on either. I do not have any issues launching applications via the TestedApplications interface. Are you sure this error is not being generated by your AUT?
Emulating Mouse Movements:
Thank you! This trick works. I see now how to manage tests with mouse.
The problem is deeper than launching application thru TC interface. Error message "Could not load VCClientWrap6.dll library" comes even when I start my application manually.
And this error message comes from "TCClients.dll" library that is shipped with trial TC version. I have built my application according to requirements of Open Applications. One of them includes special TC's source file "TCClient.cpp" file (I'm using VC++ 6.0). Within this file "TCClients.dll" is loaded and function "AddVCClient()" that shows error message is called.
Moreover, I've found string "VCClientWrap6.dll" inside of "TCClients.dll". So this file is definitely part of TC.
For example, I record a simple script where File Open dialog is activated by mouse. But on script running TestComplete waits for this window to appear and doesn't emulate mouse activity.
<font size="2" face="Verdana, Arial, Helvetica">Please zip your TestComplete project along with its Results subfolder and send the archive to our Support Team at firstname.lastname@example.org - they will investigate the problem and let you know the results.
Bobby Edgar Olagoo.com
Save on AutomatedQA Products