How Qtp will identifies object during run time
Answers were Sorted based on User's Feedback
Answer / ayaan
To answer what Jitu's interviewer asked -
The default mandatory properties for a Web Image object are
the alt, html tag, and image type properties. There are no
default assistive properties defined. Suppose your Web site
contains several space holders for different collections of
rotating advertisements. You want to record a test or
component that clicks on the images in each one of these
space holders.
However, since each advertisement image has a different alt
value, one alt value would be recorded when you create the
test or component, and most likely another alt value will
be captured when you run the test or component, causing the
run to fail. In this case, you could remove the alt
property from the Web Image mandatory properties list.
Instead, since each ad image displayed in a certain space
holder in your site has the same value for the image name
property, you could add the name property to the mandatory
properties to enable QuickTest to uniquely identify the
object.
Also, suppose that whenever a Web image is displayed more
than once on a page (like a logo displayed on the bottom
and top of a page), the Web designer adds a special ID
property to the Image tag. Thus, the mandatory
properties are sufficient to create a unique description
for images that are only displayed once on the page, but
you also want QuickTest to learn the ID property for images
that are displayed more than once on a page. To do
this, you add the ID property as an assistive property, so
that QuickTest learns the ID property only when it is
necessary for creating a unique test object description.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / jitu
Itold it will learn mandatory properties,assistive
properties,etc but the interviewer says give eample of
mandatory property,assistive property..
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / geena
In the run time QTP read the VB Script and compare line by
line with the OBJREPOSITORY and then compare with the
application. If ObjRepo's objects and appications objects
are same u get pass otherwise u get fail result.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / deven
To access runtime objects we can use GETROProperty and
SETTOProperty to change the TESTOBJECT property in QTP.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / chandana
Hi
i think by its logical name, and class
chandana
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / chandini
I think itz GetROProperty, it recognizes the run-time
objects
| Is This Answer Correct ? | 1 Yes | 8 No |
what are the environment variables,how do you use them. give an example.
What is reusable action?
can any one tel ,using simple string a[0]=I a[1]=N a[2]=D like that it go's . . out put i need INDIA help me it's really need full ..
Plz explain about MATCH/EXACT MATCH/IGNORE SPAGE in text check points?
what kind of frame work you used in your last project?
I've some problem in Descriptive programming plz help me. I've written in a click event code in Functional library when I run this flight reservation program It is not run. How to I write multiple click event in functional library. My program is this. I have associate an action with functional library. Public Function ClickButton(byval ApplicationName, byval WindowName, byval ObjectName, byref Comments) If Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Exist Then Dialog("text:=" &WindowName).Activate Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Click Elseif Window("text:="&ApplicationName).WinButton("text:=" &ObjectName).Exist Then Window("text:=" &ApplicationName).Activate Window("text:=" &ApplicationName).WinButton("text:=" &ObjectName).Click End if End Function
What is recovery scenario in qtp?
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
Do you have any knowledge about Business Processing Testing in QTP