How to resolve, When QTP throws: verify that parent properties match an object currently displayed in your application.I would appreciate your early replys

Questions by harita

Showing Answers 1 - 10 of 10 Answers

D.V.Narasimha Rao

  • Feb 21st, 2006
 

Hi ,

  If u get that errror,  please click on the Details Option in the Pop  UP message that comes, Then u will know where the error is.

After that Go to Object Repository, and Highlight the particular object,if it highlights , then there may be problem in ur script.Otherwise , Add the Object to the Repository by clicking on the Add Objects Button..

Any Doubts , Feel Free to ASk

Narasimha Rao

raghu

  • Mar 4th, 2006
 

Hi Narsimha,

I am a new user. Want to know how I shoud start learning QTP. Do I need to learn VBS or VBA. I know winrunner and used it. But When I started with QTP, I do not know where to start for learning teh expert view side of it using VBS.

What about Object Repository? How do I catch errors and handle them liek I do in WR tool?

Thanks

  Was this answer useful?  Yes

Kaivalya

  • Dec 22nd, 2006
 

Hi,

Basically this error comes when the properties in Object Repository doesn't match with those in your application.

If the properties of the object change during runtime then QTP wont be able to identify that object.

So check which property of the object has changed in application you can verify this by spying on that object.Accordingly modify your object repository.

Also check whether the Hierarchy of the object is proper 

kiranpaul20

  • Jun 16th, 2010
 

The reason for QTP throwing this error is that when the test is running the object identfication 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 throwed 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 fromt he 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.

Kiran Paul

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions