SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    COM, DOM and ADO

    Hi All,
    I am trying to understand the different Object models that we use in QTP programming. I'll share with you what i understood so far, please correct me if i am wrong and please add any objects if i have missed out.

    COM - Component Object model is the standard using which different applications allow vbscript / other scripts to access their methods and properties.
    Different COM objects are identified by a progID

    Ex: Excel.application
    Scripting.FileSystemObject
    Word.Document
    QTP.Applications

    CreateObject("ProgID") creates an instance of a COM object

    ADO Object: ActiveX DataObject is also a COM Object which is used to access the data ie provided by OLEDB /ODBC object.

    DOM Object: Document Object Model is also a COM object which is used to identify the webpage object or XML objects.
    (I am not that much clear about this, if someone could add to this it'll be great)

    AOM - Automation Object Model. Is it same as COM ??

    Please contribute to this post, it'll turn out to be helpful for all those who are trying to understand Vbscript in bits and pieces.

    Thanks.

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: COM, DOM and ADO

    They all are COM. OM means object model which defines how and application exposes its object. AOM which you are refering to is QTP AOM, which defined all the objects QTP exposes using COM.

    DOM again can be of HTML DOM or XML DOM.

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: COM, DOM and ADO

    Thanks for the response Tarun.

    I have seen an excel object being opened as a COM object
    ex: CreateObject("Excel.application") and also as an ADO application.

    oConn = CreateObject("ADODB.connection")
    connectionstring = ODBC Connection string for Excel files
    oConn.open Connectionstring

    Similarly txt files can also be opened using COM object and ADO object.

    Is there any other files which can be opened using ADO.

  4. #4
    Moderator ifraser's Avatar
    Join Date
    Jul 2004
    Location
    Brisbane, Australia
    Posts
    2,090
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: COM, DOM and ADO

    Go to this link for all your answers on this line of questioning.

    http://www.microsoft.com/technet/scr...qanda/all.mspx

    By studying the code examples here you will save us all a lot of time.
    You can buy my Art from: "Post Cards now available"
    Ian Fraser Landscape Photography
    World Wide Shipping.

    http://mowogman.wordpress.com/

  5. #5
    Member
    Join Date
    Jun 2007
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: COM, DOM and ADO

    Thanks for the link Ian and i am sorry for wasting your time.

    Thanks.

  6. #6
    Moderator ifraser's Avatar
    Join Date
    Jul 2004
    Location
    Brisbane, Australia
    Posts
    2,090
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: COM, DOM and ADO

    [ QUOTE ]
    Thanks for the link Ian and i am sorry for wasting your time.

    Thanks.

    [/ QUOTE ]

    You didn't waste my time... I provided you a resource that will help answer just about all your questions on this subject. I don't consider helping people here to be a waste of time.
    You can buy my Art from: "Post Cards now available"
    Ian Fraser Landscape Photography
    World Wide Shipping.

    http://mowogman.wordpress.com/

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:17 AM.

Copyright BetaSoft Inc.