Forum Discussion

chad's avatar
chad
Occasional Contributor
14 years ago

Testing web app with hundreds of panels in depth

I'm tasked with writing functional tests for a web app that is either poorly designed or uses some method that test complete is rendering the objects in a long way.  I've found that a text box in a section of the screen is buried literally 100's of panels deep.  If I attempted to map it, TestComplete takes like 30 seconds to even pop  up the little window telling me all the parent objects I'd have to map.  There's no way I want to do that. 



I did come up with a function to find the text box and other objects based on some property values.  I could automate that way but I was hoping someone might have some insight into this multiple panel thing.  Maybe there is a plugin that I might need?


1 Reply

  • satya214_1's avatar
    satya214_1
    Occasional Contributor
    Hi Chad,



    If you are using NameMapping to refer controls in your script. You can use "Enteded Find" in NameMapping to skip through intermediatery panels.



    Even then, initially you have to add all the panels in tree structure to reach the required control to be accessed and then change its hierarchy (to required point of reference) with the NameMapping window. Now enable "Entended Find" check box (refer to help topic Extended Find) for the same control required to access.



    Once you are able to access the control from this point of your reference, all the the remaining intermediate controls can be deleted.



    Regards,

    Satya.