Forum Discussion

william_roe's avatar
william_roe
Super Contributor
9 years ago

Shared Name Mapping with Differing Object Browser IDs

We have three test projects sharing a name mapping file. The three application have a similar naming pattern (CMWebTest, CMWebTestUnfiltered and CMWebTestFilteredSSPOFF. The alias (Cribmaster) is defined as follows:

 

aliasmapping.PNG

 

However when sharing name mapping across the projects the object on a screen cannot be found. The differences shown in the object browser are below. The page is exactly the same between the three applications..

 

object browser diffs.JPG

 

All of the frames, articles, panels, etc above the circled elements are be found... what am I missing?

  • THE SOLUTION HAS BEEN FOUND -- THANK YOU TECHINCAL SUPPORT (Yuri)


    There's a project setting which instructs TC to process and modify IDs which match certain patterns in a special way. It is under 'Tools | Current Project Properties | Open Applications | Web Testing | Object Identification'. The CMWebFiltered_SSP_OFF project has this pattern in the 'Other' group: ^{[A-Za-z-]+}(\d\d\d\d\d\d+)$
    It matches IDs of the problematic objects in your application and removes trailing digits from them (btn200401, btn200402, and btn200403 become just btn). Everything is fine in the CMWeb project because it doesn't contain this pattern for some reason. Probably, this project was converted from a previous TC version where it didn't exist, and CMWebFiltered_SSP_OFF is a relatively recent one.


    'CMWebFiltered_SSP_OFF' is a new project and did get the default 'Object Identification' setting. I have removed the setting from the project (and default) and objects are recognized properly in all projects. MERRY CHRISTMAS!!!

     

     

  • william_roe's avatar
    william_roe
    Super Contributor

    THE SOLUTION HAS BEEN FOUND -- THANK YOU TECHINCAL SUPPORT (Yuri)


    There's a project setting which instructs TC to process and modify IDs which match certain patterns in a special way. It is under 'Tools | Current Project Properties | Open Applications | Web Testing | Object Identification'. The CMWebFiltered_SSP_OFF project has this pattern in the 'Other' group: ^{[A-Za-z-]+}(\d\d\d\d\d\d+)$
    It matches IDs of the problematic objects in your application and removes trailing digits from them (btn200401, btn200402, and btn200403 become just btn). Everything is fine in the CMWeb project because it doesn't contain this pattern for some reason. Probably, this project was converted from a previous TC version where it didn't exist, and CMWebFiltered_SSP_OFF is a relatively recent one.


    'CMWebFiltered_SSP_OFF' is a new project and did get the default 'Object Identification' setting. I have removed the setting from the project (and default) and objects are recognized properly in all projects. MERRY CHRISTMAS!!!

     

     

    • AlexKaras's avatar
      AlexKaras
      Champion Level 3

      William,

       

      Thank you a lot for the update!

       

      Merry Christmas and a great 2016 :)

  • Hi,

    Can you go to project properties and check the below options are same in all the projects?Obj_Rec_Model.JPG

    • william_roe's avatar
      william_roe
      Super Contributor

      pranavswaroop_g wrote:

      Hi,

      Can you go to project properties and check the below options are same in all the projects?Obj_Rec_Model.JPG


      All four are set to tree

      • dganov's avatar
        dganov
        Staff

        You should also check "Open Applications | Web Testing | Object Identification" options (as pranavswaroop_g highlighted).