What are Object Models, COM, DOM, AOM, TOM in QTP – Part-1

Hello friends,

I am sure many of you must be having some questions/doubts about COM, DOM, AOM and TOM in QTP (like me!) .

Here in this post we will try to understand what are COM, DOM, AOM and TOM in QTP and how to use these to make our life easy (or may be tough!!).

Okay, so firstly what they stand for, just to quickly refresh.. 🙂

COM – Component Object Model
(examples:- Excel objects, FSO objects)

DOM – Document Object Model
(examples:- Browser(“”).Page(“”).object.getElementsByTagName)

AOM – Automation Object Model
(examples:- Createobject(“quicktest.application”))

TOM – Test Object Model 
(examples:- concept how qtp manage AUT objects)

Above examples should give you a high-level idea of what exactly there are. Have you noticed that “Object Model” is common in all!
So let’s look into this first before going forward.

As you know, whole concept of QTP and automation roam around objects and properties.

Object model, as the name suggests, is a model around the objects of various types. Conceptually it’s like an API which provides a capability to perform operations using a set of properties and methods into the model. 

We are going to discuss 4 types of models in this post as mentioned above.

To be continued..

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top