Forum Discussion

dhundley's avatar
dhundley
Regular Contributor
3 months ago
Solved

recorded objects do not equal playback objects

I just upgraded my testcomplete to the latest release 15.75 and my very first attempt at recording and then running (playback) is giving me the behavior depicted in the image below. i am recording a click on the document type combo box and the Account text box but when I run (playback) the recording it is clicking on the Tran Code combo box and the Amount text box. Is anyone else experiencing this behavior with the new release?

 

  • i edited the name mappings for two objects that were getting incorrectly selected during the recording process so that their properties include the WPFControlName and then re-recorded the keyword test and it successfully chose the correct objects this time. i know i had recorded numerous other keyword tests before now where it didn't need me to manually edit the mappings. who knows how many other properties will get "confused" from here on but, for now, i'm going to just deal with them as they arise. i think something changed that is causing the recording process to look at some properties before others but i can't prove anything. 

17 Replies

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    It would help to have a clear screen shot or a text list of the object propertied used in the name map (for both the correct and incorrect  target objects).  Also, X/Y clicks can be very flakey especially between different OS versions.  Objects identified by unique properties are much more stable.  However Win 10 and Win 11 may be changing the indexes or ordinals.  Are you able to compare between the two workstations?

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    This is a reference to a known issue with dpi settings.  This may not apply in your case if you are not using things like X/Y coordinates or other methods of identification involving any relationship to the screen size...  

    https://support.smartbear.com/testcomplete/docs/testing-with/specifics/testing-on-different-dpi-settings.html

    I am not aware of any issues with object recognition between Win 11 and Win 10 where objects have been identified using unique object property values unless it is related to the behavior of the tested application (a Win 10 version verses a Win 11 version).

  • dhundley's avatar
    dhundley
    Regular Contributor

    i edited the name mappings for two objects that were getting incorrectly selected during the recording process so that their properties include the WPFControlName and then re-recorded the keyword test and it successfully chose the correct objects this time. i know i had recorded numerous other keyword tests before now where it didn't need me to manually edit the mappings. who knows how many other properties will get "confused" from here on but, for now, i'm going to just deal with them as they arise. i think something changed that is causing the recording process to look at some properties before others but i can't prove anything. 

    • scot1967's avatar
      scot1967
      Icon for Champion Level 2 rankChampion Level 2

      I am glad the "fix it and move on" strategy suggestion worked.  I remember being able to set these priorities at one time but I can't remember how I did it.  I'll post back if I find it.

      👍 I am sure a few likes on the most helpful posts here would be appreciated. 👍

      Have a  great day!