GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 638 of 677    Print  
how to solve error when QTP cannot identify object


while running recorded application in QTP ,it gives error


Cannot identify the object "OK" (of class WinObject). Verify that this object's properties match an object currently displayed in your application

Line (3): "Window("Window").Window("Login").WinObject("OK").Click 32,10".

can some pls give solution of this problem ,QTP gives this error for all drop down in application i recorded



  
Total Answers and Comments: 1 Last Update: June 11, 2008     Asked by: sangeetasingh268 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 11, 2008 02:20:34   #1  
akothuru Member Since: April 2008   Contribution: 37    

RE: how to solve error when QTP cannot identify object
Use the Statement at the begining of the script/function "On Error Resume Next". This is the concept of Exception Handling.

If you use this statement in your script, it simply ignores any type of Error Popup messages at runtime and executes the next statement/line of the script. But It simply skip the line which gets the Error Popup message and no action performed for that line.

If you want to send this error type/description to Test results, then use the following code at end of the script/function

If Err.Number <> 0 Then
  ErrorNumber =" Error # " & CStr(Err.Number)
  ErrorDescription = Err.Description
  Reporter.ReportEvent micFail, "Error Message: " & ErrorDescription , "Failed"
  Err.Clear 
End If

 
Is this answer useful? Yes | No

 Related Questions

Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces next-generation “zero-configuration” Keyword Driven testing technology in QuickTest 
Latest Answer : Object spy is used in QTP for Descriptive Programming. to Identify the Object properties ...

Latest Answer : The object spy is very much useful while identifying the properties of objects while writing the descriptive program. ...

Latest Answer : The File extension of the script file is ".vbs"object repository files are two types : 1. Per Action Repository - ".mtr"2. Shared Repository - ".tsr" ...

Latest Answer : QTP can recognise the objects through object repository or object spy.Object Repository: It captures "properties and methods" of the object. It stores the object properties and methods "permanently". Object Spy: It captures ...

Latest Answer : Actually, QTP Framework is divided into 2 parts. They are 1. BPT (Business process testing) Framework and 2. Keyword Driven Framework.In detail: 1. BPT: to use this Framework License is necessary to work on this. Most of the people is not working ...

Latest Answer : At the time of Recording First Browser level or page level or frame level or object level.At the time of RunningMandatory Properties or Assistive Properties or Index or Location  ...

Latest Answer : What is Object repository? Object Repository is used to store all the objects in the application being tested.Types Object repository    1. Per Action Repository     2. Shared Repository Difference between 2 Object repository    ...

What if storage limit of shared object repository exceeds its limit(2 MB).how this kind of situation can be handled?
Read Answers (6) | Asked by : Beena

In order to fetch test data from Database we have to create a adobdb connection object to connect with data base. the syntax is .... >CreateObject("Adodb.connection").  
Latest Answer : Hai Const adOpenStatic = 3Const adLockOptimistic = 3Const adUseClient = 3Set objCon=CreateObject("ADODB.Connection") Set objRec=CreateObject("ADODB.Recordset")objCon.Open "DRIVER={Oracle in OraHome92};SERVER={Servername};UID={Username};PWD={Password};DBQ={Dbnmae}"objRec.CursorLocation ...

If a error occur during the excution of QTP script. how can we get the name of the current object that cause the error
Read Answers (4) | Asked by : asha


 Sponsored Links

 
Related Articles

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

SQA Software and Tools

SQA Software and Tools In quality assurance it is always important to get all the help we could get In other industries developers could easily check the products manually and discard those that do not meet the standard The length and the width of the product are checked to maintain standardization
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly&quot; This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Business Network Virtual Communication Tools

Business Network Virtual Communication Tools Since ages the Business community heavily relied on face to face communication for building Business relationships Face to face communications formed the basis for trust in a relationship An individual&rsquo; s appearance or the physical appearance of
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 

JavaScript Date Object

JavaScript Date Object In this JavaScript tutorial you will learn about date object and methods of date object explained along with syntax and example mosgoogle center JavaScript Date Object Usage of Date Object Date object of Java Script is used to work with date and times General syntax for defini
 

What are Data Access Tools

Data access is the process of entering a database to store or retrieve data. Data Access Tools are end user oriented tools that allow users to build structured query language (SQL) queries by pointing and clicking on the list of table and fields in the data warehouse. Thorough computing history, t
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape