Forum Discussion
Thanks a lot for the detailed reply.
TestComplete interacts with the running application to get the objects and their properties so, if the application isn't running, you can't map something. Likewise, if the object isn't currently instantiated in the application, you can't map it.
I'm talking about a running application. I should have made it clear that capturing all the objects mean that with a click of a button, you can capture all the objects on a particular screen on the application that is running. UFT has this concept of 'Navigate and Learn' which can do this. I have an application with 70 screens and more than 4000 objects. Doing it the UFT way will save huge amount of time.
Considering that in many modern applications, there are a lot of objects that are dynamically generated, mapping everything up front will still require some manual process.
Of course it does. But starting from something with 90% work done is so much better than starting from scratch.
However, once an item is mapped, you can then select the option to map child objects en masse (right click on the mapped item in NameMapping and select the appropriate context menu).
This is better. I will try this and get back.
I have an application with 70 screens and more than 4000 objects
But how many of these are actually relevant to the tests you'll write?
This is where the Alias map comes in.
By all means, map everything (automatically if you're willing to risk it). But do spend a little time creating a more human readable version of the important parts (mainly the bits your code will interact with the most) in your Alias map, and leaving out all the containers etc which need to be there, but don't really form part of the test itself.
A good Alias map makes maintenance and general use of objects on an ongoing basis massively easier.
Just saying (again), as it's one of the most common mistakes I see on here - using big horrible unreadable copies of map objects in the Alias tree ..... yuk.
Related Content
- 11 years ago
- 6 years ago
- 11 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago