Forum Discussion

samirc23's avatar
samirc23
Contributor
12 years ago

Object Issue

Same object two scenarios



Scenario 1- before saving person details.



I mapped person name field and I’m able to highlighted this field from object bowser, mapped objects and aliases window. This is working as expected.



Scenario 2 – after saving person details I need to edit person name.



Since after saving it ‘person name’ object location is changed, I captured this object after saving it. I am able to highlight this object from Object Browser tree but same object not able to highlight from Mapped objects and Aliases windows and getting error (screenshot). Because of this issue object not being identified and test fails. Please find attached screenshot for reference.



Please let me know possible solution to this issue.

 

Many Thanks,

Sam

 

 

 

 

 

  • Hi Jorge,



    Both object id is different so i captured that object again since id is different after capturing when i tried to highlight this object  I’m able to highlight it from object bowser tree and i mapped that object and did show this object in name mapping editor=> got that object in name mapping editor and mapped object window but when i tried to highlight it on screen from mapped objects and aliases window it gives error as mention in screenshot( previous comment screenshot). It is not that that object screen is not available its available and if i highlight same object from object browser tree i can highlight but same object not being highlighted from mapped and aliases objects window. 

  • jorgesimoes1983's avatar
    jorgesimoes1983
    Regular Contributor
    I guess that if the object is available on screen when it's accessed, it should work.
  • even i feel same and it does from object browser tree but same object not being highlighted from mapped and aliases window.



    hopefully some one may able to help me out in this :)

  • Hi Sam,


     


    If the location of the object is changed during the test run (honestly, that's a bit strange from the developer's side), you cannot address the object by using the full mapped path. Try using the Extended Find feature - in this case, TestComplete can get the object by its mapping criteria omitting several parent objects. See the "Using Extended Search Criteria for Mapped Object Identification" article for details.