Micro Focus QTP (UFT) Forums
Error message while running the qtp scripts. - 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: Error message while running the qtp scripts. (/Thread-Error-message-while-running-the-qtp-scripts)



Error message while running the qtp scripts. - SonalBalte - 11-25-2010

[attachment=555]The following steps I have done in my company and faced the error.
1) Installed .NET Framework 2.0
2) Installed QTP9.2
3) My application is windows based application.
4) I have kept the application on “D:\”path.
5) I have made one folder “D:\QTP” path to store the results.
6) In the “Help” section of this “Run Error”, I have the following details.
“Run Error: Cannot identify object
This error indicates that there is no object in the current view of the application that matches the description saved in the object repository for the object.
This error occurs in one of two basic situations:
• The object is not (or not yet) displayed in the application at the time of the error.
• The object is present, but the description in your application has changed so that it no longer matches the test object description that Quick Test is using to identify the object.



RE: Error message while running the qtp scripts. - mvuyy001 - 11-25-2010

Hi,
Since its a .NET application that is being tested (assumed this coz the screenshot show the object as WindowsForms10.EDIT), first and foremost, check if the .NET addin is installed. If it is installed, then there is a known issue where QTP tends NOT recognize the .NET objects if the settings under 'Record and Run Settings for Windows Applications' is set to 'Record and Run Only on' Option. Instead change the option to Record and Run test on any open Windows-based application and then try recognizing the objects. The Objects will be recognized with Prefix starting with 'SWF' i.e., instead of Windows(Streme: Login) it will be SwfWindow("Streme Login").

Hope this helps.
Thanks
MV