Forum Discussion
tristaanogre
13 years agoEsteemed Contributor
If you have not done so already, I would read up and devour anything you might be able to find concerning NameMapping, Aliases, and the like. Specifically, look up and research things like Conditional Mode for NameMapping.
For example, in a Delphi application I used to work with, in Windows XP, certain forms would show up with a class of "TMessageForm" for certain warning dialogs and such. In Windows 7, though, this showed up as a class of "#32770". It was, effectively, the same window, but the OS assigned different classes. What I did, then, was set up a NameMapping alias for the dialog, looking for the class in a "Conditional Mode" (className = "TMessageForm" or className = "#32770") and defining the form based upon the wndCaption.
You might want to take a look at this recorded webinar
http://smartbear.com/support/screencasts/testcomplete/reliable-tests-for-dynamic-objects/
For example, in a Delphi application I used to work with, in Windows XP, certain forms would show up with a class of "TMessageForm" for certain warning dialogs and such. In Windows 7, though, this showed up as a class of "#32770". It was, effectively, the same window, but the OS assigned different classes. What I did, then, was set up a NameMapping alias for the dialog, looking for the class in a "Conditional Mode" (className = "TMessageForm" or className = "#32770") and defining the form based upon the wndCaption.
You might want to take a look at this recorded webinar
http://smartbear.com/support/screencasts/testcomplete/reliable-tests-for-dynamic-objects/
Related Content
Recent Discussions
- 10 hours agoMW_Didata