cancel
Showing results for 
Search instead for 
Did you mean: 

Recursive Name Mapping of Child Objects

Recursive Name Mapping of Child Objects

It would be helpful if there was an option to recursively name map Child Objects from a given object, meaning it would name map all the child objects as well as their children and so on. Similar to the way you can recursively modify files and subfolders from a command line.

 

There's sometimes a parent object that I know I'll need to map everything (or nearly everything) underneath of. It can be a real pain to have to keep clicking 'Map Child Objects' on each object with children all the way down the hierarchy.

 

 

As an example, here's a Win Forms object that has a header as well as a tab group. I need most the objects in this hierarchy name mapped. With the current functionality the fastest way was to do 'Map Child Objects' on all the relevant parents, but it would have been much easier to just do that on the WinFormsObject("teacherNotesCntr") and have it recursively map everything.

 

recursiveExample.PNG

3 Comments
Contributor

We already have the Map Child Object which can be used to map all the childs of a mapped parent using a single mapping operaton. Don't i understand your idea in the right way?

Contributor

What I'm getting at is the Map Child Object operation only goes one level below. I want it to map all the way down the hierarchy.

 

So for instance if you look at the example image I gave, if I did Map Child Object on WinFormsObject("teacherNotesCntr") it would only map it's direct children, i.e. WinFormsObject("headerGroupBox") and WinFormsObject("tabControl"). What I am proposing is that there would be a recursive option added (maybe just a checkbox the same as it asks if you want to it to automatically name map) that would map all the children and grandchildren objects, i.e. all those objects.

Occasional Contributor

I agree with this too, many times you might have many child levels and have to manually map each level one by one, I would like to have an option which will map all child objects for a parent.

Announcements
Welcome to the TestComplete Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video:
Announcements