In what situations QTP will not recognize the Objects?

Answers were Sorted based on User's Feedback



In what situations QTP will not recognize the Objects?..

Answer / mulugu sathish chary

By default QTp Accept Web ,Activex , Power Builder .
If your application is some other like whicjh is developed
in Dot Net ,Java ,People soft,Siebel,SAP,Terminal Emulator
e.t.c

QTP does not Recognise these applications by default you
need to ad the ADDins in to QTP such that ur QTP
understands the Physical Object and Class name,Properties
e.t.c

Is This Answer Correct ?    6 Yes 0 No

In what situations QTP will not recognize the Objects?..

Answer / ramireddy

suppose our application contains Siebel application that
case few buuotons qtp recognised

Is This Answer Correct ?    2 Yes 0 No

In what situations QTP will not recognize the Objects?..

Answer / geena

1. If the AUT change
2. If AUT is in another window
3. If synchronization is a problem
If QTP is running faster than the application.

Is This Answer Correct ?    1 Yes 0 No

In what situations QTP will not recognize the Objects?..

Answer / deven mehta

1. Check the loaded add-ins:

It’s pretty basic, but be sure you have the correct add-ins
selected. If QTP is only recognizing your objects as
standard WinObject this may be a sign that you need to use
an add-in. Sometimes QTP’s ‘Display Add-in’ Manager on
start-up option, under Tools\Options\General may not be
selected. This setting may cause you to start QTP on a
machine and mistakenly assume that all of the correct add-
ins have been chosen. Double-check by opening your script
and selecting File\Settings under Properties ‘Associated
add-ins:’ verifying that all the needed add-ins are listed.
Also make sure QTP is started before the application under
test. QTP will sometimes not recognize a web application if
the browser was opened before QTP.



2. HP’s Knowledge base:

Research the issue. If your add-ins are fine, the next step
is to search the HP’s Knowledge base. Again, this may seem
obvious, but a surprising number of people fail to do this.
There’s nothing worse than spending hours on a script only
to discover later that there is a patch (for example see
patch that resolves some QTP 11 object issues) available or
a posted solution that will solve the problem. I'm
sometimes hailed as an automation genius by fixing
something that an engineer may have been struggling with
for days, based on information I found in the KB. Often,
even after I tell the engineer how I solved the issue, they
still don’t check the KB the next time they have a problem.
Do me a favor -- don't be that guy (or gal)! Check the KB.
(If nothing is found in the KB, another great resource to
check is SQAForums.

3. Using .Object:

Look at all the available object’s operations (both
the “identification properties” and “native properties”
methods). You'll be surprised what you'll find lurking
around in an object’s properties that may help to automate
it. Using .Object try as many operations as possible--even
ones that may not seem remotely relevant to the action you
want to perform. For example: I was having a problem
recognizing text on an application’s custom .NET grid.
After spying on the object and trying several different
methods that sounded promising, I ended up trying an odd
one, called GetViewStyleInfo, and surprisingly it worked!









4. Try GetVisibleText:

Sometimes QTP does not recognize text in an object using
the GetROProperty("text") method. As a last resort, try
using the GetVisibleText, GetTextLocation and Type methods.
These methods really helped me automate some old
proprietary controls. Using a combination of QTP’s TYPE
method and GetTextLocation, I created a very reliable rich
edit box object function. For example:



?
123456789101112131415161718192021222324252627282930313233343
536373839404142434445464748495051525354555657585960616263646
5666768697071 RichEditBoxICW "0","ENTER","=>","T","From
date:" wait 1
RichEditBoxICW "0","ENTER","Through","T^20","Through
date:" wait 1 RichEditBoxICW "0","ENTER","No=>","N","Do
you want to queue this
activity?" '*********************************** '*
RICHEDITBOX '********************************** '***********
************* '* ICW '* @Documentation Used to perform
valid actions on RichEdit
objects. '************************ Function RichEditBoxICW
(index,action,lineText,valueToEnter,comment) On Error
Resume Next '***************************************** '
SET OR PATH BASED ON
ENV '***************************************** set
strICWPath = Browser("CF").Page("CF").Frame
("WorkSpace").SwfObject("IEController") strParse = strings
("PARSE",valueToEnter,"LEFT","","") 'this would return
False string does not contain ^ Select Case UCASE
(action) Case "ENTER" intXY = getTextXY(lineText)
arrXY = Split(intXY,"^") strICWPath.WinObject
("regexpwndclass:=RichEdit20A").Click arrXY(0),arrXY
(1) If strParse = "False" Then
Reporter.Filter = rfEnableAll strICWPath.WinObject
("regexpwndclass:=RichEdit20A").Type micRight
strICWPath.WinObject("regexpwndclass:=RichEdit20A").Type
valueToEnter strICWPath.WinObject
("regexpwndclass:=RichEdit20A").Type micReturn
strReportMsg = "ENTERED ->" & valueToEnter ELSE
strEnterValue = geString
("PARSE",strValueToEnter,"LEFT","","")'Get Value to
Enter strRightCount = geString
("PARSE",strValueToEnter,"RIGHT","","")'Get # of right keys
to press before entering text for nTabs = 1 to
strRightCount strICWPath.WinObject
("regexpwndclass:=RichEdit20A").Type micRight
next strICWPath.WinObject
("regexpwndclass:=RichEdit20A").Type strEnterValue
strICWPath.WinObject("regexpwndclass:=RichEdit20A").Type
micReturn strReportMsg
= "ENTERED ->" & strEnterValue end select End
Function '------------------------------------------------
--------- '@Function Name: getTextXY '@Documentation
Return X and Y coordinates of text '@Parameters: The
text to find '@Created By: Joe Colantonio '@Return
Values: X & Y coord separated by a
^ '@Example: intXY = getTextXY(strLineText) '--
-----------------------------------------------------------
Function getTextXY(strTextToFindXYFor) set strICWPath =
Browser("CF").Page("CF").Frame("WorkSpace").SwfObject
("IEController") l = -1 t = -1 r = -1 b = -1 rc
= strICWPath.WinObject
("regexpwndclass:=RichEdit20A").GetTextLocation
(strTextToFindXYFor, l, t, r, b) getTextXY = r & "^" &
t End function


5. Developers are your friend:

The application's developers can help you. Ask your
developers to expose a method or add a property that will
make automation easier. But before you ask -- make sure
you've exhausted all the above suggestions. Developers can
be a tough bunch, and you really don’t want to annoy them
with things you could have resolved on your own. I work
with some awesome programmers, and as long as I'm able to
clearly explain to them what I need and why, they never
hesitate to help.

6. Make sure there is not a patch that will help.

Sometimes there are known issues with object recognition
that only a QTP patch will resolve. Also new patches
sometime include support for newer version of AUT
like .NET or Browsers.

Is This Answer Correct ?    0 Yes 2 No

In what situations QTP will not recognize the Objects?..

Answer / shyam.meghansh

Then You need 2 user descriptive programming....the u will
get it







.................Any more question mail me
testingwithshyam@gmail.com

Is This Answer Correct ?    0 Yes 5 No

In what situations QTP will not recognize the Objects?..

Answer / rizwan

QTP 9.2 provides two options fo object identification

Tool->Object Identification

it provides a furthur option under it called smart
Identification..u can configure it to recognize the objects
which are not recognised by QTP normally!!

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More QTP Interview Questions

Can anybody help me by sharing the code for checkbox in qtp using vbscript.

2 Answers  


Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

0 Answers  


I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"

4 Answers  


give one example where you have used regular expression?

6 Answers   Ordain Solutions,


If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

0 Answers   Ordain Solutions,






Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

0 Answers  


Object repositories types, which and when to use?

0 Answers  


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

0 Answers  


What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project

2 Answers   Yahoo,


What the differences are and best practical application of Object Repository?

0 Answers  


Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.

0 Answers  


is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?

1 Answers  


Categories