Forum Discussion

MeganKD83's avatar
MeganKD83
New Contributor
10 years ago

Namemapping Desktop Application

I am trying to manually namemap the scheduler portion of a desktop application because the automap hasn't worked.  The manual mapping isn't looking good either so I am hoping I can rely on more experienced TC users to assist.

 

My test started throwing errors with this mapping: 

NameMapping.Sys.Process("MedClient").VCLObject("frmAppParent").Window("TmePageControl").Window("TAdvTabSheet", "Appointment Scheduler").VCLObject("frmApptSchd").VCLObject("spltMain").Window("TRzSplitterPane", "", 2).VCLObject("spltUpper").Window("TRzSplitterPane", "", 2).VCLObject("pnlCategory").VCLObject("clCategory")

 

The test should have been clicking the boxes in the attached screenshot (Scheduler1.jpg)  where the arrow is pointing, so I start to manually automap the 10 preceeding pointers when I realize that at every level, Test Complete is highlighting the entire screen, rather than individual components of the screen. (Scheduler2.jpg)

 

I'm stuck, and I need help, and I'm a QA dept of 1.  Thank you in advance.

 

 

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    Use Object Spy on the big window that TC is highlighting and show us the Advanced selections.  There should be a way in there to drill down to the boxes that you want.

    • Marsha_R's avatar
      Marsha_R
      Icon for Champion Level 3 rankChampion Level 3

      That's okay, both are useful  :)

       

      So is it that TC won't let you map the check boxes?  How close to them can you get?

    • djadhav's avatar
      djadhav
      Regular Contributor

      Is it correct that you're not able to detect the check boxes using object spy? When you try to do that, TC is highlighting the bigger window.

  • MeganKD83's avatar
    MeganKD83
    New Contributor

    Correct, it will not allow me to mark the checkboxes. . .as close as I can get is the larger box "Categories" "Locations" or "Resource" boxes.

     

    Also, in the bottom half of the screen/grid on the daily calendar it does not allow me to access the appointment time slots. A user can right or left click in the 20 min increment time slots to schedule appointments.  See attached. 

     

     

    • Marsha_R's avatar
      Marsha_R
      Icon for Champion Level 3 rankChampion Level 3

      And I think that box is the first object spy screenshot that you sent?

       

      If you look in there, there's a line for "Items" that has a box with ... to the right.  Click on the ... and see if there's an index in there that would let you access the checkboxes.

       

      If not, check the other objects that have ... and see if you can drill down to the level that you want from there.