GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 10 of 684    Print  
Give me an example where you have used a COM interface in your QTP project?

  
Total Answers and Comments: 5 Last Update: May 22, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 15, 2005 11:16:26   #1  
latha        

RE: Give me an example where you have used a COM inter...

com inteface appears in the scenario of front end and back end.for eg:if you r using oracle as back end and front end as VB or any language then for better compatibility we will go for an interface.of which COM wil be one among those intefaces.


 
Is this answer useful? Yes | No
January 10, 2007 06:21:47   #2  
praveen kumar masari        

RE: Give me an example where you have used a COM inter...

hi

i will give you example of com.COM means component object model access the methods and properties to your application.

Ex:1.how to accessing the methods in your com object

note:our COM object name is ADO( Activex Data Object )

QTP CODE:

Dim Cn Rs

set Cn CreateObject( ADODB.Connection )

1.note:syntax:set objectName CreateObject( ProgramId )

2.note:every com object having one program id

set Rs CreateObject( ADODB.Recordset )

Cn.ConnectionString path of the Database

Note:1.Cn is the Object name

2.use this Cn object we can access the methods and properties of our COM object

Rs.Open quer name cn

Rs.Move First

Note:Rs.Move First means move the first record


 
Is this answer useful? Yes | No
November 04, 2007 03:49:54   #3  
sudhanandareddy Member Since: April 2007   Contribution: 12    

RE: Give me an example where you have used a COM inter...
Hi..

we use COM interface when we are interacting with Excel files.

u can say like this..

When ever we use createobject method..it is nothing but creating a COM Object.

the above examples also currect. But in general we dont interact with database. Excel file interaction is common for all object for all objects.

example of COM:

ofso createobject("excel.application")

if any queries regarding this ping me: nanda.dreddy@gmail.com


 
Is this answer useful? Yes | No
December 12, 2007 04:00:38   #4  
laxmichoudhari Member Since: December 2007   Contribution: 6    

RE: Give me an example where you have used a COM interface in your QTP project?
com interface appears in the scenario of front end and back end. for eg:if you r using oracle as back end and front end as VB or any language then for better compatibility we will go for an interface. of which COM will be one among those interfaces. Create object creates handle to the instance of the specified object so that we program can use the methods on the specified object. It is used for implementing Automation(as defined by Microsoft).
 
Is this answer useful? Yes | No
May 22, 2008 11:41:22   #5  
manishgi Member Since: March 2008   Contribution: 8    

RE: Give me an example where you have used a COM interface in your QTP project?
We can use com interface with database excel window script host.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape