Micro Focus QTP (UFT) Forums
Need list of "objects" used in qtp by using "CreateObject" - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Need list of "objects" used in qtp by using "CreateObject" (/Thread-Need-list-of-objects-used-in-qtp-by-using-CreateObject)



Need list of "objects" used in qtp by using "CreateObject" - SaranKumarV - 09-15-2010

Hi ,

Could some one please give me the list of objects we can use from qtp
ex :
Code:
Set QApp = CreateObject("QuickTest.Application") -> For Launching the QTP application.
Set fso = CreateObject("Scripting.FileSystemObject") -> For creating FSO object to work on Windows folders and files.

And the difference between CreateObject("<xyz>.Application") and CreateObject("Scripting.<xyz>")

Thanks


RE: Need list of "objects" used in qtp by using "CreateObject" - Saket - 09-15-2010

My first question will be, why do you need a list? any specific pupose?
It seems, you have not clearly understood the CreateObject function. you need to learn more about this, google on this or refer QTP help.

basically CreateObject function creates and reference to an automation object. Automation object is an object that is exposed to other applications using automation interfaces.
SO any application which is exposing its interfaces can be used as automation object and we can handle operations on it using Createobject

the syntax is CreateObject(Class) here a class would be Servername.typename
Servername would be the application providing the object and typename would be the type or the class to create object for.

In your question Application is a class for which we creating an object for QuickTest Application .
There could be number of automation server which can provide object and it would be very difficult to list out.


RE: Need list of "objects" used in qtp by using "CreateObject" - SaranKumarV - 09-15-2010

Hi Saket,

Thanks for the quick reply. In this Thread I asked for
--> All supported objects because:
1)I have been working with descriptive programming from past 3years and many times I will forget for Excel,notepad,IE.. objects and I feel if everything is in one place I can recall whenever I requried.
2)If some one new to QTP descriptive programming that time they can get the supported objects from this Thread.
So if we start with some of the objetcs we know the rest can be filled by other Members as well so all the list will be in the same thread.
--> Thanks for clarifying "Difference between Application and Scripting" I got some information from your reply and I am looking in to that if I get more information I will post in the same thread.