When we use Object Spy?
can we write QTP script before built is came in testing?

Answers were Sorted based on User's Feedback



When we use Object Spy? can we write QTP script before built is came in testing?..

Answer / raj

When we use record and play back method in QTP, QTP
automatically identifies the objects and store them in
object repository. In some cases where QTP fails to
identify like alert windows, alert messages we use object
spy to capture the object manually.

In other cases like key word driven framework, while
creating the test scripts we use object spy and based on
the type and class of the objects, we can use the
respective keywords.

We can write QTP scripts before the build is released based
on the wireframes/mockups provided. If the
wireframes/mockups are not available, discuss with the
developers and know the nature of the objects. Based on
that we can create scripts. Ultimately the aim must be
independant or min. use of record and playback.

Is This Answer Correct ?    4 Yes 0 No

When we use Object Spy? can we write QTP script before built is came in testing?..

Answer / rajendra

Using the Object Spy pointing hand mechanism, you can view
the supported properties and methods of any object in an
open application. As you move the pointing hand over the
objects in the application, their details are displayed in
the Object Spy. These details may include the test object's
hierarchy tree, its properties and values, and the methods
associated with the object. For methods, the syntax is also
displayed. In most environments, you can choose to view the
test object properties and methods or the run-time (native)
properties and methods.

Without Application in Hand , we can also write scripts
Subjected to All the properties of the objects must known
to you

Thanks,
Rajendra

Is This Answer Correct ?    0 Yes 0 No

When we use Object Spy? can we write QTP script before built is came in testing?..

Answer / francis

The purpose of spy is to find which of the properties the
Qtp identifies for the particular control so that we can
manupulate using this properties
with out gui we can write script using descriptive progra
and also manupulate if the user knows the property of the
objects

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script

3 Answers  


Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?

5 Answers  


I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm?

3 Answers   TCS,


What are the types of Object Repositories in QTP?

1 Answers   Ordain Solutions,


A dialog is diplays " Transaction 254689 has been successfully completed" How to get the transaction ID from the message ?

6 Answers   Virtusa,






Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me suggestions?

3 Answers  


in flight reservation application. when i entered flyto combobox as london. and i have to check this london is present in flyfrom combobox.give me the code with good explanation. extention to this question. at each iteration i have to put(WRITE) the fly from and fly to city in database table

1 Answers  


How to merge the two object repositories

3 Answers   Wipro,


wht is Manual Testing Frame work. Pls anybody can give appropriate answers

0 Answers   Satyam,


If u don't have any Knowledge on perticular application but they give that application to u for Testing ? Then How we wil move towards testing on that application?

16 Answers   Genpact, HP,


how to count the word "IS" is repeated in the application using DP

3 Answers   DST Global Solutions,


How Exactly we can find out the INDEX No. of any object of an application when we test that application in QTP? Explain this by giving me the example of all LINKS of G-Mail (including home page, User-account page and all possible pages you ever seen in G Mail)?????? and if your answer is that as per appearance of objects(LINKS) in application we can find out the index number in application then tell me how you find out which object(LINK) having INDEX No. 1,2,3 and so on and how you say which object(LINK) is appeared first and which is last?

4 Answers   Infosys,


Categories