veronica_glynn
11 years agoContributor
Handling Dynamic tree ID's
Hi! I am having a lot of difficulty automating our tree items. My first issue is that we use Component Art and Test Complete does not support that as of right now so I am struggling to figure out a way to automate it. My other issue, is that every time you refresh your user session, the tree ID's change. And it isn't just the object ID, it is also the table and panel ID prior to it. I have seen a lot of posts about using '*' wildcards and what not but I need some guidance on exactly where this needs to occur. My NameMapping directory is getting littered with hundreds of objects because it sees these objects as 'new' even though they aren't. Is there anyway to force Test Complete to recognize Tree Item A no matter what the ID is?
example:
XX - indicates dynamic ID
TreeItemA (Alias.Browser.pagecognero.formForm1.panel.TableIDXX.cellXX)
TreeItemB(child of A) (Alias.Browser.pagecognero.formForm1.panel.TableIDXX.cellXX.panelXX.itemXX)
and so on down the tree. I would like to be able to pass in the object name and call the 'Click' property since they do not support 'Expand'. But since it is a moving target, I haven't been successful.
Thanks for your help and let me know if you need more info!
Veronica
example:
XX - indicates dynamic ID
TreeItemA (Alias.Browser.pagecognero.formForm1.panel.TableIDXX.cellXX)
TreeItemB(child of A) (Alias.Browser.pagecognero.formForm1.panel.TableIDXX.cellXX.panelXX.itemXX)
and so on down the tree. I would like to be able to pass in the object name and call the 'Click' property since they do not support 'Expand'. But since it is a moving target, I haven't been successful.
Thanks for your help and let me know if you need more info!
Veronica