explain virtual object? in detailed? pls any one explain me?

Answers were Sorted based on User's Feedback



explain virtual object? in detailed? pls any one explain me?..

Answer / br

your application may contain objects that behave like standard object but are not recognized by QTP. You can define these objects as Virtual objects and map them to standard classes such as button or a check box. QTP emulates the user's action on the virtual object during run session.

Eg: Suppose you want to record on a web page containing a bitmap that the user clicks. The Bitmap contains several different hyperlink areas and each area opens a different destination page. When you record a test, the web site matches the coordinates of the click on the bitmap and opens the destination page.
When you run a test, QTP clicks the bitmap in the area defined as a virtual object so that the web site opens the correct destination page.

Is This Answer Correct ?    5 Yes 0 No

explain virtual object? in detailed? pls any one explain me?..

Answer / saha

When ever qtp is not identified the objects using Mandatory,
assistive, so it will try to identiy the objects. wich are
non-standards it will convert to standard objects and it
will identiry at recording time.so here it will use to
identify that by co-ordinations

Is This Answer Correct ?    4 Yes 0 No

explain virtual object? in detailed? pls any one explain me?..

Answer / prashanth

If QTP Could not identify the objects, then those objects are called "Non Standard Objects" or "Virtual Objects"
These virtual objects behave like a standard object but not identified by QTP.
We can map a virtual object to a standard object by using "Virtual Object Wizard" (Tools-->Virtual Object-->New Virtual Objects...)

Restrictions on virtual objects
1. A virtual object should not overlap with another virtual object.
2. QTP does not support virtual objects for analog and low level recordings.
3. The application window should be of same size and in same position when we record and run the tests as it was when we define a virtual object.
4. We cannot insert any type of checkpoints on virtual objects.
5. We can define virtual objects only for the objects on which we can "Click" or "Double Click" and which record "Click" and "Dblclick", otherwise virtual object is ignored.

Is This Answer Correct ?    3 Yes 1 No

explain virtual object? in detailed? pls any one explain me?..

Answer / saha

When ever qtp is not identified the non standard objects ,
so Virtual Object will try to identify the objects using the
co-ordinations it will convert non-standards into standard
objects

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More QTP Interview Questions

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

2 Answers   Amdocs,


Iam trying to write script for Rediffmail Page,in doing so the script line for go button is not accepting. Is their any other way other than . Browser("micClass:=browser").Page("micClass:=Page").Link ("micClasss:=Link","name=go")

2 Answers  


when you press a link it displays "the page cannot be displayed" then as a tester how you will find the problem,what type of problem must be it?

3 Answers  


What is the file extension of the code file and object repository file in QTP?

0 Answers  


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,






What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?

1 Answers  


what are the different u notice in betweem QTP version 8.2 and 9.2 and what is new in QTP9.2

1 Answers  


QTP Query: Hello to all, I'm getting an error (as below) when I perform descriptive programming on any Web application. "The test run cannot continue due to an unrecoverable error.The "myvar_0" object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object " But I do not have any problem when I perform the same descriptive programming on a Windows application such as Sample Application - Flight. Previosly , I had prepared a lot of scripts - both via creating the properties collection object and by giving the description in string arguments and implemented them on Flight and they're working perfectly fine.I'm using QTP Version 9.2 The sample script I have used for Web application is as below : Set myvar_0 = Description.Create 'Setting property collection object for Browser myvar_0("class").value = "Browser" myvar_0("name").value= ".*" 'Setting property collection object for Page Set myvar_1 = Description.Create myvar_1("class").value = "Page" myvar_1("name").value= ".*" 'Setting property collection object for Text box Set myvar_2 = Description.Create myvar_2("class").value = "WebEdit" myvar_2("name").value= ".*" 'Setting property collection object for Button Set myvar_3 = Description.Create myvar_3("class").value = "WebButton" myvar_2("name").value= ".*" SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe" Browser("myvar_0").Page("myvar_1").WebEdit("myvar_2").Set ("hello how are you ?") Browser("myvar_0").Page("myvar_1").WebButton ("myvar_3").Click Browser("myvar_0").Page("myvar_1").Sync Browser("myvar_0").Close As our application is a Web based application, I was planning to make a few changes in regards to the object names, but unfortunately I am getting the above mentioned error. Could anyone please advice me, whether it could anything to do with the run setting or anything else.I am getting the same error even while implementing on our Sample Application - Mercury Tours website. I would be grateful to anybody who can solve my problem !!

1 Answers  


what is retesting?

2 Answers  


How to check the value for variables during run time. Pls anybody can give the answer.. Thanks in advance...

4 Answers   Navis,


Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini

2 Answers   TCS,


what is the exact testing process in qtp plz explin ?

2 Answers  


Categories