Forum Discussion

shaz_ilyas's avatar
shaz_ilyas
New Contributor
13 years ago

Wrong Mapping Issue (Ambiguous recognition of tested objects)

Hi



when recording test with ASP.net 3.5 Telerik controls RadGrid we are getting this issue every time. after doing some analysis found that its an issue of wrong mapping which is generating on every time working with RadGrid telerik control.



screens in attachment.

regards

Shaz







---------------------------------------------------------------------------------------------------------------------------

Error Details

There are several objects in the system that match the recognition attributes
of the "panelCtl00Cph1Radgrid1"
mapped object.


This may cause the "Object not found" error.


Objects




Sys.Process("IEXPLORE",
2).Page("http://localhost:63315/WebComV5.WebUI/TMS/TerminalUserGroups.aspx").Form("form1").Table(0).Cell(4,
0).Panel("ctl00_RadSplitter1").Table("RAD_SPLITTER_ctl00_RadSplitter1").Cell(0,
2).Panel("RAD_SPLITTER_PANE_CONTENT_ctl00_RadPane2").Panel(0).Panel(0).Panel("ctl00_ctl00_cph1_pnlOuterPanel").Panel("cph1_pnlOuter").Panel("ctl00_cph1_RadGrid1")


Sys.Process("IEXPLORE",
2).Page("http://localhost:63315/WebComV5.WebUI/TMS/TerminalUserGroups.aspx").Form("form1").Table(0).Cell(4,
0).Panel("ctl00_RadSplitter1").Table("RAD_SPLITTER_ctl00_RadSplitter1").Cell(0,
2).Panel("RAD_SPLITTER_PANE_CONTENT_ctl00_RadPane2").Panel(0).Panel(0).Panel("ctl00_ctl00_cph1_pnlOuterPanel").Panel("cph1_pnlOuter").Panel("cph1_pnlInner")



To solve the problem, you may need to modify mapping
settings for the "panelCtl00Cph1Radgrid1"
object or one of its parent objects.


See Help for more
information

  • Hi,



    Check the recognition parameters of the 'Panelct100Cph1RagGrid' object. Most probably, it is mapped by the ObjectType property whose value is 'Panel' which makes TC unable to distinguish between the two problematic panel objects. You need to add the ObjectIdentifier property to the recognition parameters (it should have the value of 'ct100_cph1_RadGrid1'). Then map another panel by ObjectType and ObjectIdentifier.



    You can learn how to add properties to recognition parameters from the Modifying Mapping Criteria help topic.
  • shaz_ilyas's avatar
    shaz_ilyas
    New Contributor
    thank you ...it solved the issue but i had to remap the controls again :(   which is an overkill



    regards

    shaz