Course Name Start Date Time Duration Registration Link
No Training Programs Scheduled ClickHere to Contact
Please mail To sudhakar@qtpsudhakar.com to Register for any training

Sunday, March 25, 2012

Virtual Objects in QTP

What is Virtual Object?
 A virtual object is defined by user in QuickTest to recognize any area of your application as an object. Virtual objects enable you to record and run tests on objects that are not normally recognized by QuickTest.
 What is virtual Object Collection?
 A virtual object collection is a group of virtual objects that is stored in the Virtual Object Manager under a descriptive name.
 How to disable virtual Objects while recording?
 Go to Tools-->Options--> General Tab--> Disable Recognition of virtual objects while recording
Check and uncheck this option to disable or enable virtual objects while recording.
 What is the storage location of Virtual Objects?
 If you create any virtual objects automatically those objects will be stored in
QuickTest installation folder\ dat \ VoTemplate
 What is extension of virtual objects file?
 How to use virtual objects on different machines?
 After creation of virtual objects copy QuickTest installation folder\ dat \ VoTemplate Folder to other machines on which you want to use virtual objects.
 What are the limitations and drawbacks of Virtual Objects? 
·         QuickTest does not support virtual objects for analog or low-level recording.
·         Not possible to apply a checkpoint on a virtual object
·         Only by recording we can add virtual objects
·         Not possible to add virtual objects using Object Repository
·         Not possible to spy on a virtual object using object spy
·         Virtual Objects doesn’t support all objects and methods.
·         May not run perfectly on different screen resolutions if a test using Virtual Objects.
·         Virtual object uses the properties Name, Height, Width, X, Y which the properties are having maximum possibilities for frequent change.


  1. Thank you Sudhakar garu......

  2. Your application may contain objects that behave like standard objects but are not recognized by QTP. You can define these objects as virtual objects and map them to standard classes, such as a button or a check box. QTP emulates the user's action on the virtual object during the run session. In the test results, the virtual object is displayed as though it is a standard class object

  3. Hi Sir, This is my application descriptive coding:

    VbWindow("vbname:=frmInventory").VbWindow("vbname:=frmVATCalculation").ActiveX("acx_name:=SSTab").ActiveX("acx_name:=FarPoint DoubleSingle Control").Type"200"
    VbWindow("vbname:=frmInventory").VbWindow("vbname:=frmVATCalculation").ActiveX("acx_name:=SSTab").ActiveX("acx_name:=FarPoint DoubleSingle Control").Type"150"
    VbWindow("vbname:=frmInventory").VbWindow("vbname:=frmVATCalculation").ActiveX("acx_name:=SSTab").ActiveX("acx_name:=FarPoint DoubleSingle Control").Type"10"

    1.This code can be repeated for more than 3 to 4 time, So i can't able to find the unique object in these
    2.Please give the solution to add unique object in descriptive methods

    1. refer youtube link: qtp virtual objects by free open mentor.I think this youtube video will help