Geeks Talk

Prepare for your Next Interview




How to write scripts for getting this virtual object using QTP

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. ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-16-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 164 Times in 138 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-06-2008
Junior Member
 
Join Date: Mar 2008
Location: Hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nacharya is on a distinguished road
Re: How to write scripts for getting this virtual object using QTP

Quote:
Originally Posted by Geek_Guest View Post
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


I too facing this same problem,
Can any body has answers to this Q.
Any suggestions?

Thanks.
Nrusingha
Reply With Quote
  #3 (permalink)  
Old 03-06-2008
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 347
Thanks: 4
Thanked 54 Times in 44 Posts
bizzzzzare is on a distinguished road
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
Reply With Quote
  #4 (permalink)  
Old 04-24-2008
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
siraz_babu is on a distinguished road
Thumbs up Re: How to write scripts for getting this virtual object using QTP

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
Reply With Quote
  #5 (permalink)  
Old 08-12-2008
Junior Member
 
Join Date: Aug 2008
Location: pune
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
rayudu81 is on a distinguished road
Re: How to write scripts for getting this virtual object using QTP

I too having exactly the same problem could any one help me
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 01:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved