Forum Discussion
AlexeyKolosov
Staff
16 years agoHi Sridhar,
Well, you can change recognition criteria in Name Mapping during test run, actually. To do this, you need to specify a project variable instead of a constant property value in your name mapping scheme and change the variable's value during the test (you may need to call the RefreshMappingInfo method to make TestComplete update the tree after the property is changed).
However, if you need to identify an object regardless of its position in the objects tree, I recommend that you use the Extedned Find feature instead of changing recognition criteria dynamically. Please see the "Using Extended Search Criteria for Mapped Object Identification" help topic ( http://www.automatedqa.com/support/viewarticle/12466/ ) for more information.