Forum Discussion
tristaanogre
13 years agoEsteemed Contributor
Is there some setting using which TC can generate it automatically ?
Under Tools | Options | Engines | NameMapping there is an option labeled "Map object names automatically". If that's turned on, as you record tests, TestComplete will create the name mapping for you.
Also ,when I create the Alias for the tree view model ,will I be able to use a short name like I did for DOM model .to be more precise ,can I create just one alias for all the frames and panels together ?
The short answer to this is "Yes".
The long answer: The hierarchy that you pointed out that is generated for the tree view is the exact hierarchy from the browser through the page to the target component with all panels and tables underneath. Most of that hierarchy is "noise" generated by the HTML components and such that are used in developing the page. And it is all stored in the NameMapping panel and, by default, then stored in the Aliases panel. What you'll need to do is edit it in the Aliases panel where you can rename things as much as you want. For that matter, you can "collapse" that tree in the aliases. So long as the NameMapping is left as it is, the alias will be able to find the component.
A good starting point for reading is at http://smartbear.com/support/viewarticle/12449/ This contains a lot of links to other articles describing how to modify NameMapping and Aliases.
As for renaming specific items, check out http://smartbear.com/support/viewarticle/12478/
As for editing the hierarchy (collapsing the "tree"), check out http://smartbear.com/support/viewarticle/12465/
Does this help?
Related Content
Recent Discussions
- 6 hours agoSubhraDas
- 12 hours agoJacobjacob44