what is the use of VIRTUAL OBJECTS? explain ?

Answer Posted / thangaraj

Ans: 2 Ways you can check Object is recognized or not
1. Using Obejct Repository window Add the object and check
the propery value of it. 2. Using Object spy - spy the
object and check the property value. Values would be
specific to Objects

Example: 1. Open QTP and then Paint window, 2. Record the
object colors like red and yellow and do some actions it
will look like:
Window("Paint").WinObject("Afx:1000000:8").Click 106,277
then Using Virtual Object - Mark the red and give
description of the object as red 3. Now record the same
object and do some actions it will look like:
Window("Paint").WinObject("Colors").VirtualObject
("red").Click 5,5

I think this solves the problem....

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the parameterization?

579


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

1485


What is file database?

1689


What is keyword view in qtp?

548


Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)

1548






Explain the terms test and business component?

547


what are the challenges you have faced while testing web based application using the automation tools ?

596


How many types of status are there?

584


What are the benefits of qtp?

552


What is the architecture of your project? Can any one answer for this question plz........

1412


when to start the automation?

1475


What is keyword view?

562


What is recovery scenario in qtp?

581


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

635


How does qtp recognize objects in aut?

584