Most of QTP users are very familiar with Virtual Objects because it solves unrecognized application objects problem. Sometime we work with those applications that have different types of objects but tool does not recognize and support those objects as object. So for this kind of problem every successful tool provides the facility to recognize those objects as Virtual Object.
QTP tool is also providing same and easy steps to define the Virtual Object. Basically we used Virtual object functionality when tool does not support any application object as object.
As we discussing Virtual Object in respect to QTP tool, there some important points which should get the notice by every QTP users.
Point 1: Define the Virtual Object size and position in the web page by using the crosshairs pointer.
Point 2: During a run session make sure that application window should come in same size and same location. May be it effect the coordinates of virtual object.
Point 3: We can not insert any checkpoints for virtual object.
Point 4: We can not use Object Spy for virtual Object.
Point 5: We can use Virtual Object only in recording and running session.
Point 6: Virtual objects store in the computer, not only for current test.
Point 7: We can define the virtual object only for those object in which, we can click or double click.
We can see the all defined virtual objects with the help of Virtual Object Manager window. Basically it list out the all created virtual objects. We can delete or disable the objects with the help of Virtual Object Manager and Options windows. Virtual Object Manager window provide the facility to delete the objects after selecting them and if you want tool should keep the objects but don’t recognize, for that you have to check the option “Disable recognition of virtual objects while recording” in Tool > Options window.
I think these are the basic and important points for those who want to use Virtual Object feature in QTP and if I’m missing something please update with your valuable comments