Forum Discussion

anitha123's avatar
anitha123
Contributor
13 years ago

How to map objects all at once from application

Hi,





I aPlease let me know how to map all the objects at once. Right now I am using the Map object from screen and doing it for each object. Please let me know how it can be done for Whole application at once.



















Thanks and regards,

Anitha

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    Since for most applications all the objects don't exist all the time, this is not possible.  An object needs to be created and present in memory for it to be mapped.  What you are doing is perhaps the best method although, once you map an object, you can right click on it in NameMapping and select the option "Map child objects" to map all the child objects of that one object.  It will only map the next level "down" so if there are child objects of one of those child objects you will need to  repeat the process.
  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Anitha,



    Another possible approach is to record a dummy test where you would interact with all the needed objects in your application. During the recording, TestComplete will automatically add these objects to Name Mapping.