Forum Discussion

jaspreet2's avatar
jaspreet2
Occasional Contributor
7 years ago
Solved

object mapping

unable   to map the object which is working fine during the recording of the ios device but during playback its, not recognise the object and make the test fail.kindly help asap

  • Most likely the properties being used for object identification in the mapped object are dynamic in some sense where they change every time the application is run.  You'll need to edit the properties being used for object identification so that they can properly identify your objects but account for dynamic property values.  Wildcards, conditional namemapping, and other techniques can be used (plenty of online help documentation on how to do a number of editing processes).

     

    If you post screenshot of the properties of your object as they appear in the object browser/object spy (all properties), we will be able to help you with some suggestions.

     

    Just as a note: Rarely do I keep the NameMapping criteria assigned to objects during the process of recording for just such a reason. It's a recommended best practice that, even if you end up NOT changing anything, you go in and at least review what was mapped.

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Most likely the properties being used for object identification in the mapped object are dynamic in some sense where they change every time the application is run.  You'll need to edit the properties being used for object identification so that they can properly identify your objects but account for dynamic property values.  Wildcards, conditional namemapping, and other techniques can be used (plenty of online help documentation on how to do a number of editing processes).

     

    If you post screenshot of the properties of your object as they appear in the object browser/object spy (all properties), we will be able to help you with some suggestions.

     

    Just as a note: Rarely do I keep the NameMapping criteria assigned to objects during the process of recording for just such a reason. It's a recommended best practice that, even if you end up NOT changing anything, you go in and at least review what was mapped.