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

Can we create user defined functions in qtp?

559


What is keyword driven framework?

620


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1627


How to find the name of the machine where you are running your automation scripts in qtp?

521


In qtp is it possible to check broken links of a page?

587






I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1851


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

1580


Explain about Test Fusion Report of QTP?

617


How the exception handling can be done using quicktest professional (qtp)?

571


Explain about the test fusion report of quicktest professional?

531


i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com

1466


In qtp, explain what is keyword driven automation framework?

619


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1573


Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.

1371


banking domain description for software tester for interview

3469