Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Virtual Objects
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi all,
a) Can anybody explain about Virtual Objects?
b) How does it identify Objects, is it via x,y, absx and absy co-ordinates?
c) Can Virtual objects be done by discriptive programming?
d) How to add a Virtual object in the OR after i create it by collections (Tools ->Virtual Objects-> Manager)?
e) Can i get any document which can explain me the whole concepts (A to Z) on Virtual Objects?
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
a. Your application may contain objects that behave like standard objects but are not recognized by QuickTest. You can define these objects as virtual objects and map them to standard classes, such as a button or a check box.
b. QuickTest identifies a virtual object according to its boundaries and relative to the parent object which u have assigned while creating virtual object.
c. Not clear to me
d. When you created the Virtual Object using the Virtual Object Manager, you must have selected the Class to which you wish to Map as well as specified a name for the Virtual Object.
In the script where you wish to use the Virtual Object include this sytanx -

Code:
Browser("").Page(“”).VirtualButton("VirtualObject").Click
VirtualButton - ObjectClass you mapped to. Specify the Object Class you mapped your virtual Object to.
Incase you are using VirtualCollections, you can also specify the CollectionName and use the Index to retrieve the required virtual Object.
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi Prafulla,
Thanks a lot.. regarding c.
c. Can we use descriptive programming for virtual objects instead of going to virtual object manager and adding as a collection?
d. It would be helpful if anybody have any document regarding Virtual Objects specifically.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  virtual objects do not work kawagnes 0 1,152 08-28-2020, 12:02 PM
Last Post: kawagnes
  Could not create Java virtual machine TangShake 2 8,718 10-26-2017, 11:41 AM
Last Post: walshmagger
  cannot create java virtual machine on QTP 12.02 version richa5685 0 2,005 02-23-2016, 11:18 AM
Last Post: richa5685
  Virtual objects in QTP nilanjans 1 3,275 11-06-2012, 10:03 AM
Last Post: K Gaurav Varshney
  Connect to a virtual machine using QTP Amoula007 0 3,176 01-25-2012, 02:03 AM
Last Post: Amoula007

Forum Jump:


Users browsing this thread: 1 Guest(s)