Forum Discussion

sjordan's avatar
sjordan
Occasional Contributor
12 years ago

Having problems getting Extended Find to work for desktop application

Situation: I have a keyword test that I use in common between multiple larger tests.  However, the items within it have different mappings depending on how many "tabs" I have open.  There is UltraTabPageControl, UltraTabPageControl2, etc.  The child objects are the same.



Problem: I have enabled extended find on the immediate children of the UltraTabPageControls, but it's failing to recognize the object if it's not the same # as was mapped originally.



I have attached a Word document with screenshots from my mapping tree.



History:  I originally followed the directions found here exactly:

http://support.smartbear.com/viewarticle/29351/

Unfortunately, deleting the mapped parent like the article called for resulted in massive problems when I recorded anything new.  SmartBear helped me fix my mapped tree; deleting the mapped objects while the aliases still existed was causing my mappings to be corrupted.  I remapped everything and can run most of my tests now, but the extended find just doesn't work out for me.



If anyone can provide some specific instructions for making Extended Find work, I would really appreciate it.  I am using keyword tests, not scripts.  Thank you for your time.

3 Replies

  • sjordan's avatar
    sjordan
    Occasional Contributor
    Okay, I discovered that the instructions contained on their support site (http://support.smartbear.com/viewarticle/29351/) are faulty.  They ask you to delete the mapped parent to move the children up a level.  I followed the instructions contained in this webcast instead:

    http://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/



    This webcast asks you to drag the child item (on the Mapped Objects section, not aliases) up to the first stable level, then check the Extended Find box.  See the attached photo for what that ultimately looked like for me.



    After doing this, I had to re-record a couple sections of my tests with direct references to the objects, but the extended find worked like a charm once I had done that and it wasn't looking for the dynamic parent anymore.

  • Hi Sabrina,


     


    The value of the Index property can possibly cause this situation. Make sure that the index values in the mapping scheme are correct.


    It will be better if you refuse using the Index property to map objects as this property isn't reliable.


     

  • sjordan's avatar
    sjordan
    Occasional Contributor
    Thanks, Tanya.  I tried removing index as one of the criteria, and it was suddenly unable to find the objects at all (in the tests that normally run okay).  I then tried changing the index so that instead of "equals" 2, 3, 4, or 5, it was just "greater than or equals" 2.  It still couldn't find the objects.