Understanding Virtual Objects

Understanding Virtual Objects


Some other posts that can be very useful on the Virtual Objects In QTP :

Removing-virtual-object-definition In QTP
Virtual-objects-configuration-option In QTP
Understanding-virtual-objects In QTP
Qtp-virtual-objects In QTP

QuickTest identifies a virtual object according to its boundaries. Marking an object's boundaries specifies its size and position on a Web page or application window. When you assign a test object as the parent of your virtual object, you specify that the coordinates of the virtual object boundaries are relative to that parent object. When you record a test, QuickTest recognizes the virtual object within the parent object and adds it as a test object in the object repository so that QuickTest can identify the object during the run session. QuickTest also recognizes the virtual object as a test object when you add it manually to the object repository.

You can disable recognition of virtual objects without deleting them from the Virtual Object Manager. For more information, see Removing or Disabling Virtual Object Definitions. 


Notes:



  • During a run session, make sure that the application window is the same size and in the same location as it was during recording, otherwise the coordinates of the virtual object relative to its parent object may be different, and this may affect the success of the run session.




  • You can use virtual objects only when recording and running a test. You cannot insert any type of checkpoint on a virtual object, or use the Object Spy to view its properties.




  • To perform an operation in the Active Screen on a marked virtual object, you must first record it, so that its properties are saved in the test object description in the object repository. If you perform an operation in the Active Screen on a virtual object that has not yet been recorded, QuickTest treats it as a standard object.




  • The below stuff is very important and very frequently used by any QTP programmer in Object identification using QTP.

    0 comments:

    Post a Comment