I am very new to Test Complete and have found the tool very useful in trying to automate our web applications. I have gone through the online documentation provided and I feel I have understood the basics of the Object model used by TC. However , I am still a bit confused about the usage of DOM or TreeView model for the objects. I do understand that Treeview model is faster and I can also feel that the test execution is quite slow as I am using DOM model. I am writing down the reason I thought of using DOM model and if someone can show me how to do the same using Treeview model then it will be really helpful
When I use TreeView model the object is recorded as follows
Call Aliases.IEXPLORE. pageSearchResultsCom.formAspnetform.panelFc.panelC ontent.panelBodyContainer.panelBodyContainerBody.p anelFullwidth.panelCtl00Cp1Pnlf1home.panelSearchCl ear.panelSearch.panelFcContentClear.panelClear.pan elSearch1.textboxCtl00Cp1 ucSearchPanel3SmartSearchTxt.SetText("london")
As you can see the Treeview model gives me a long physical name to handle with whereas the DOM model gives a short name(for the obvious reason that there is no hierarchy). But with the DOM model I can create an alias and reduce the name to below
Yes. Aliases, can be edited down to be a shortened name.
By default, when TestComplete automatically maps components and objects, it always creates Aliases with the full hierarchy.
The point of Aliases is to do exactly what you described. If you were able to reduce the DOM mode string down to that set of Aliases, you can do the same with the TreeView using the same techniques.
Is there anything specific that is preventing you from doing so using the TreeView model? As mentioned, you've already found the tools and techniques to do so with DOM so there's nothing really new to share about how to do it with TreeView.
Automated Testing Evangelists
Definition expert - noun - Unknown drip under pressure