Forum Discussion

srikanth2801's avatar
14 years ago

Problem regarding Flat hierarchy


we are testing a java application using the "flat hierarchy" in the testcomplete.

so most of the items are placed with the same names in the parent window like window("list","",1),window("list","",2),window("list","",3)....

But the number is not unique all the time. it is generated based on the window we opened first.

how can we overcome this issue.

is there any work around for this.

1 Reply

  • Hi Srikanth,

    The best solution is to use the Tree object model. It was implemented in order to overcome situations like the one you are facing.

    Another solution is to find a specific object by the values of one or more properties which provide unique identification of the object. This can be done in script with the FindChild Method, or automatically with the Name Mapping feature.