Recognizing Class Names
[img]images/icons/tongue.gif[/img] I am facing a problem with TestComplete recognizing windows classname. My application is based on windows forms. It picks up classname as following :
Sys.Process("Application_Name").Window("WindowsFor ms10.Window.8.app7", "", 3).Window("WindowsForms10.STATIC.app7", "", 7)
I would have worked with this even,had the classname be same everytime. Everytime the application starts, different classnames are recognized for same object according to the sequence of buttons pressed.
One more observation :
With my earliar build,
1. When I start my application manually, I was getting proper classnames ( as names given to windows in coding).
2. where as When I start application by 'TestedApps.Runall' or by 'Launch Applications' button, it was picking up the names as above.
But now(next build of my project), No matter how I launch my application, it picks up only the classnames i have mentioned above.
Any solution to this ? Because, TestComplete is useless for my app otherwise. [img]images/icons/frown.gif[/img]
Any help is highly appreciated.
[ 10-12-2004, 06:35 PM: Message edited by: bontz ]
Re: Recognizing Class Names
Which version of TestComplete you are using? As far as I can see, you are testing a .NET Aplication and it is not recognized as Open. That is why the application's objects have names like Window("WindowsForms10.Window.8.app7", "", 3). There was an issue in TestComplete 3.07: .NET applications were not recognized as Open if SP1 for .NET Framework 1.1 was installed. This problem has been fixed in TestComplete 3.08. If you are having this problem with the latest version, please see how our sample .NET application (<TestComplete 3>\Samples\Open Apps\TODO List\) is shown in the Object Browser. Please also provide a script snippet that launches your application and activates its main window.
Save on AutomatedQA Products