When QTP throws "verify that parent properties match an object currently displayed in your application." How to resolve issue

The reason for QTP throwing this error "verify that parent properties match an object currently displayed in your application." is that when the test is running the object identification could not happen i.e the object property and values of the test object while recording and the runtime object properties and Values did not match and hence the error was thrown.


When ever there is an object identification problem QTP throws these kinds of errors.

To resolve this you need to open the Object repository and locate the object which throws the error and click the "Highlight in Application" icon and see whether that object is identified in the application under test. If identified then there is a problem in the script. You have to correct the script to see whether the methods associated with the object is correct or not.

If the object is not highlighted in the AUT then try adding that object from the application to the repository and run the test. If the objects are dynamic then you need to use regular expressions for that property.

If you are using Descriptive programming then see that the properties given for that object are correct or not.

To sum it up QTP throws these kind of errors when the Object is not identified during run time. Its an Object Identification Problem. There are ways to handle this if normal identification does not resolve the problem. Use Smart identification where you can set the Base filter values and optional Filter values and also Ordinal Identifiers where in you can set the Index or location of the object.

0 comments:

Post a Comment

/* Tynt Insight tracker ----------------------------------------------- */