Forum Discussion

seafalcon's avatar
seafalcon
Contributor
15 years ago

"Use native object name For TestComplete object names" option doesn't affect recording

I enable/disable this option and record my testscript, it seems all objects' names are not really affected by this option when recording testscripts..



gridControl["MyDateEdit2"]["Click"](57, 10);

  powerTax_Main["MyPopupDateEditForm"]["DateEditCalendar"]["Click"](93, 49);

  gridControl["ClickNewRowCellXY"]("Gross up rate", 28, 10);

  gridControl["ClickNewRowCellXY"]("Gross up rate", 43, 9);

  gridControl2["ClickCellXY"](2, "Description", 25, 6);

  gridControl["DblClickNewRowCellXY"]("Lowest Fare To Public", 37, 1);

  gridControl["TextEdit13"]["wText"] = "2222";//why its still "TextEdit13" when I disable this option?

  gridControl["Click"](730, 365);



I think if I disable this function, every object's name should be like

var p, w;

p = Sys["Process"]("My_NET_App");

w = p["WinFormsObject"]("MainFormClass", "Form Caption", 1);



Thanks
  • Hi Philip,


    The behavior you are observing is caused by the fact that there is a Name Mapping scheme for the objects in question and/or the Map object names automatically option described in the Name Mapping Options Dialog help topic is enabled. This makes TestComplete use mapped names for your application's objects. If you remove the Name Mapping scheme and disable the option, you will see how the Use native object names for TestComplete object names option affects the recording.


    BTW, please note that you need to change the properties of the current project, not the default project properties available via the Options | Default Project Properties... main menu item.

  • What's the name mapping schema?
    I didnt find it in the help doc....




  • sara05's avatar
    sara05
    New Contributor
    i have a problem like this, when i use testcomplete and open the to same window over each other . test complete didn't recognize the control of second page . i disabled the  ignore overlapping windows option but it doesn't work. do changing name maping helps me?
  • sara05's avatar
    sara05
    New Contributor
    hi allen

      i use testcomplete to record special scanarioes as office automation . in windows platform sometime i have to register letter . i can add  some related letters and show them in registeration letter   .the mojority of time   when i'm recording new letter registration and relate other letters with it , test complete couldn't recognize new window controls , i enabled ignore overlaying window in setting of testcomplete but it doesn't work. do u have any suggestion for me?
  • Hi Sara,



    If you're facing "object not found" errors, I recommend that you try using suggestions provided in one of the help topics mentioned in the Handling the 'Object Not Found' Errors help topic. The specific topic you need depends on the text of the specific error message you get. If you're having problems with newly created objects, try calling the Refresh and RefreshMappingInfo methods to make TestComplete "notice" the newly created objects.