matthew_morgan
11 years agoOccasional Contributor
Unnamed WPF Objects
I have an application written using WPF that has a truely astonishing number of controls without native names (several hundred). I read through the article pertaining to this subject (http://support.smartbear.com/viewarticle/55176/) which indicated that an alternative name could be used that netclass, caption and index values to create a pseudo name.
I was wondering how problematic that option is. If a new control is added near the beginning, does it throw off all of the subsequent controls from the name mapping? Would you recommend having the development group produce names for all (or at least most) of these controls?
Just looking for direction before I go too far down the rabbit hole.
I was wondering how problematic that option is. If a new control is added near the beginning, does it throw off all of the subsequent controls from the name mapping? Would you recommend having the development group produce names for all (or at least most) of these controls?
Just looking for direction before I go too far down the rabbit hole.
- Hey so I just posted something similar on other threat.
I'll repeat, but I think it's useful for you:
I'm currently testing a WPF based application.
I use a combination of both methods: whenever I can use 'NameMapping' I do, whenever I can't I use a function I made which receives the parent object (usually mapped name), property/ies and value/s and it handles zero, one and many objects found.
So I use as much as I can the NameMappings. And whenever there's no useful property/value pairs to identify an object I grab the application code, name the objects myself and next build I'm ready to go.
Cheers,
Leandro