Prepare for your Next Interview
This is a discussion on How to write scripts for getting this virtual object using QTP within the QTP forums, part of the Software Testing category; Question asked by visitor P.Dhanam In QTP, I had created a new virtual objects using tools->virtual object-> new virtual objects. This objects is added into virtual object manager. ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
How to write scripts for getting this virtual object using QTP
Question asked by visitor P.Dhanam
In QTP, I had created a new virtual objects using tools->virtual object-> new virtual objects. This objects is added into virtual object manager. How to write scripts for getting this virtual object using QTP. When I write script, it's saying" object doesn't found in object respository". because the virtual objects in virtual object manager. How can I map virtual object from virtual object manager to object respository? Please help me regarding this. need your answer quickly |
| Sponsored Links |
|
|||
|
Re: How to write scripts for getting this virtual object using QTP
Quote:
I too facing this same problem, Can any body has answers to this Q. Any suggestions? Thanks. Nrusingha |
|
|||
|
Re: How to write scripts for getting this virtual object using QTP
Hi,
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 - Window("").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. Cheers.....
__________________
Regards, V.Umesh Krishnan QA Consultant |
|
|||
|
I guess problem is in the navigation, i,e First we need to map the object using virtual obejct manager then record the actions on that object, so that this object gets stored in the object repository(after mapping).
Regards Siraj Shaik |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Write an SQL query | JobHelper | SQL | 2 | 09-22-2008 09:35 AM |
| A derivation inherits both a virtual and non-virtual instance | Geek_Guest | OOPS | 1 | 07-18-2007 05:51 AM |
| AltDesk is Virtual Desktop Manager for Windows. | JobHelper | Geeks Lounge | 0 | 02-21-2007 08:00 AM |
| The Read/Write Web | Lokesh M | HTML & CSS | 0 | 06-21-2006 12:58 AM |
| Diff in using Virtual Obj wiz and GUI Spy | bvani | Test Cases | 1 | 05-29-2006 11:08 AM |