Micro Focus QTP (UFT) Forums
Description mismatch - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Description mismatch (/Thread-Description-mismatch)



Description mismatch - Akhila - 03-17-2008

I have one doubt,
1) Sometimes when I run the old and script say [Script-A] am getting warning messages like
"Description mismatch - object was not found using the object description Check the object's properties" even it was a error free script when its created.
I tried in vain in re-recording that particular part to make the script run successfull.
2) Then I recorded only that part in a fresh page say [Script-B] and marked it as re-usable
action and used it in my old script[Script-A] using action "Insert call to Copy". Which made my script run successful.

My doubt is though both the scripts are same with the same object properties why am getting warning message with Script-A.

Thanks,
Akhila


RE: Description mismatch - Cpt.Zack - 03-17-2008

There is a possibility that one or more of the identifying properties of an object currently displayed has changed since the last time you captured it.

It need not be only the object name, it could be any of the mandatory properties.


RE: Description mismatch - Akhila - 03-18-2008

Thanks Zack. I have one more doubt

I observed that for the error messge "object not found check the object's properties" It giving list of object properties which I need to check with the application.
So to check the object properties I am doing object spy on the object and comparing both "Run time & Test object properties" under Object spy.
Here my doubt is do I need to check the only list of properties displayed in the QTP warning message or all need to check all run time properties of obj spy.
Sorry if I am repeating the question....I have bit confustion with this warning.

Thanks


RE: Description mismatch - Cpt.Zack - 03-18-2008

You need to check all the mandatory object properties and ensure that they are same both in run time and test object properties.If a certain property differs from its Test value, then make it as an optional property.OR USE REGULAR EXPRESSIONS.


RE: Description mismatch - Akhila - 03-20-2008

Thanks for your advice.
After checking new object propeties I found that object functionality remained same but object properties is changed. Thats why I got warning message....problem solvedSmile


RE: Description mismatch - Cpt.Zack - 03-20-2008

cool Smile