Forum Discussion

Blur's avatar
Blur
Contributor
9 years ago
Solved

Mapping problems and such

Hello,   I am currently working with multiple calendars.  TestComplete's auto mapping works fine for the most part.  However, when I got to the second calendar the issues appeared.  It would click ...
  • Marsha_R's avatar
    Marsha_R
    9 years ago

    I don't believe there's a way to do a mass update in name mapping.  If I recall, there might even be a post in Feature Requests for that.

     

    Run it and catch them one at a time is what I would be doing too.

  • Colin_McCrae's avatar
    Colin_McCrae
    9 years ago

    Sorry dude. Snowed under at work the last few days and trying to get things tidied up before holidays. Not had a chance to do anything with this.

     

    In short though ....

     

    My function would take in:

     

    The calendar as an object, or a reference to it.

    A date (in parts if you want to make life easier).

     

    Then it's just a matter of starting from the highest level (year), and working your way down. Select a year, then month, then day. Didn't look properly at the structure. Some of it may involve iterating through a collection (if it uses lefgt right button or something for month?) where day may just be using FindChild on a table.

     

    Give all your searches & loops meaningful exit caluses so you can log appropriately if someone tries to select something like the 31st February.

     

    All depends how the internals are built up really.