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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

1730


What are the ordinal identifiers in web page?

854


Why do we use breakpoints in QTP?

818


What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1944


Plz Explain AUTOMATION REFERENCE MODEL?

1935


Can we use index on view?

1848


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

847


Will down time for server and content maintenance/upgrades be allowed? how much?

855


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

830


How to check which add-ins are associated with a test in qtp?

842


Diff b/w test scenario's and test Procedures?

1865


What are the differences between quicktest professional (qtp) and winrunner?

799


What are the types of object repository?

854


what the difference between shared repository and per action repository?

781


What are the methods of the TextStream object that are used for reading from a text file?

1911