Explain in brief about the QTP Automation Object Model.

Editorial / Best Answer

Answered by: Venkat Potluri

  • Jul 28th, 2005


Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods.  
You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program 

Showing Answers 1 - 41 of 41 Answers

Siva

  • Jul 26th, 2005
 

Diffferent Between the WinRunner and QTP mens WinRunner user TSL and QTP user VBscript

Venkat Potluri

  • Jul 28th, 2005
 

Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods.  
You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program 

suchitra

  • Sep 30th, 2005
 

The Test Obj ect Model is a large set of object types or classes that QTP uses to represent the objects in your application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of

relevant methods that QTP can record for it.

 

A test object is an object that QTP creates in the test to represent the actual object in your application. QTP stores information about the object that will help to identify and check the object during the test run.

 

A run-time object is the actual object in your Web site or application on which methods are performed during the test run

  Was this answer useful?  Yes

Shermi

  • Oct 10th, 2005
 

Hello Friends,

              Can anyone explain, as what is a Framework and how to create a Framework using any automation tool like WinRunner or QTP ?

          All the Answers provided are really appreciated.

Thanks,

Shermi

  Was this answer useful?  Yes

Arun

  • Jan 6th, 2006
 

Automation framework is a process to develop the automation scripts and reduce maintenance. This framework completely depends on the application, types of testing and tools that you are using. Its hard to provide generalised framework for all applications:

In general, 

1) Create reusable scripts
2) Create modular scripts and drive scripts from external data.

Shashank Gokhale

  • Jan 11th, 2006
 

Can anybody send me a example how to use Breakpoints in QTP ?

My requirement is very simple.. I want to check the status of a particular service is running or not...

ex. Running a Local Website

Steps1:

 Check Whether 'IIS Admin' service is running or not(Break Point)

Step2: Open Browser

Step3: Run Website...

Can any body send me QTP Script accomplishing this...

Thanks in Advance !

  Was this answer useful?  Yes

vasu

  • Jan 24th, 2006
 

Hello venkat

nice answers

1) what is btp in qtp?

2)what is size of objectrepository?

3)wht is dictonary object?

  Was this answer useful?  Yes

smitha

  • Feb 16th, 2006
 

Can any one please tell the difference between the 'Global' and 'Action ' tabs in a data table?

Pavanraj

  • Mar 13th, 2006
 

Shermi,

          Automation frame work is nothing but a set of rules defined for developping and organising the test scripts

  Was this answer useful?  Yes

Pavanraj

  • Mar 13th, 2006
 

Framework is set of rules defined for developping and organising the test scripts.There are diffrent types of frame work are available namely modularized type of framework, library based, data driven, keyword driven and hybrid framework.

  You can use any of these frame work for automation. It depends on the project and how critical it is.If the project is big and has got many modules then u can choose hybrid kind of framework.

Hybrid means its combination of other different framework inorder to maintain our code/scripts.U can choose some external files for updation of fields in the projects/application(say excel sheets or text files) and u need to imoprt the file to the script,so whenever u want to update the script by different set of value you just need to update the external files which will effect on the automation script.

  hope this much is enough for time being... If u have any question u can contact me through mail ( pavanraj_idoor@yahoo.co.in )

Thanks

Pavanraj

gm

  • Mar 13th, 2006
 

Good answer: copy and paste from QTP Automation Object Model Reference, though (;-)...It would be a good idea to name your sources next time...

  Was this answer useful?  Yes

Thatiaprth Brahma Reddy

  • Mar 23rd, 2006
 

QTP supports .net application.

so every .net application supports object models

  Was this answer useful?  Yes

raj

  • Mar 28th, 2006
 

QTP support .Net applivation but Winrunner is not support.

  Was this answer useful?  Yes

satish

  • Apr 10th, 2006
 

hi plz give me a brief answer to my Question

  Was this answer useful?  Yes

yoganandam

  • Jun 16th, 2006
 

Hi Frnd,

Here sending the difference between the Global and action(local) in DataTable,

when WE use as Global it means we can acess the data what ever we have, we can acess it in the entire test and also we acess it another test also... 

when WE use as Action (Local) it means we can acess in same test only but we can`t use in another test...

I think i had give nice answer,its enough i think so .....  

  Was this answer useful?  Yes

DCP

  • Jul 7th, 2006
 

In Winrunner we can run Web Appllications Only

In QTP we Add-Ins where we could add the application we need such as Java, .NET, Emulators and etc.

  Was this answer useful?  Yes

kumaresan

  • Jul 20th, 2006
 

Automation is a Microsoft technology that makes it possible to access software objects inside one application from other applications. These objects can be easily created and manipulated using a scripting or programming language such as VBScript or VC++. Automation enables you to control the functionality of an application programmatically.

An object model is a structural representation of software objects (classes) that comprise the implementation of a system or application. An object model defines a set of classes and interfaces, together with their properties, methods and events, and their relationships.

Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods.

You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program.

Automation programs are especially useful for performing the same tasks multiple times or on multiple tests or components, or quickly configuring QuickTest according to your needs for a particular environment or application.

For example, you can create and run an automation program from Microsoft Visual Basic that loads the required add-ins for a test, starts QuickTest in visible mode, opens the test, configures settings that correspond to those in the Options, Test Settings or Business Component Settings, and Record and Run Settings dialog boxes, runs the test, and saves the test.

You can then add a simple loop to your program so that your single program can perform the operations described above for a number of tests.

You can also create an initialization program that opens QuickTest with specific configuration settings. You can then instruct all of your testers to open QuickTest using this automation program to ensure that all of your testers are always working with the same configuration.

The following are just a few examples of useful QuickTest automation programs:

  • Initialization programs—You can write a program that automatically starts QuickTest and configures the options and the settings required for recording on a specific environment.
  • Maintaining your test or component database—You can write a program that iterates over your entire test or component database to accomplish a certain goal. For example:
    • Updating values—opening each test or component with the proper add-ins, running it in update run mode against an updated application, and saving it in order to update the values in all of your tests or components to match the updated values in your application.
    • Applying new options to existing test or components—When you upgrade to a new version of QuickTest, you may find that the new version offers certain options that you want to apply to your existing test or components. You can write a program that opens each existing test or component, sets values for the new options, then saves and closes it.
  • Calling QuickTest from other applications—You can design your own applications with options or controls that run QuickTest automation programs. For example, you could create a Web form or simple Windows interface from which a product manager could schedule QuickTest runs, even if the manager is not familiar with QuickTest.

  Was this answer useful?  Yes

kareem

  • Jul 30th, 2006
 

Hi ,

This is Kareemulla , Currently iam Working in Infosys as Test Analyst ,i Saw ur

Answer for Object Model really very nice Exlanation

  Was this answer useful?  Yes

jagan

  • Sep 21st, 2006
 

Venkat,

Could you please give QTP coding standards.

Thanks

Jagan

  Was this answer useful?  Yes

hariprasad

  • Sep 23rd, 2006
 

 A framework  is nothing but a folder structure . It contains all the components that are using in Automation Architecture.Here components means...........

Object Repository,Library,Logs, Test Data,Script,Result.........

  Was this answer useful?  Yes

Ravikumar

  • Nov 3rd, 2006
 

SMITHA,

actualy globel sheet is useful to every test in QTP,we cam use same data  in to different tests.

and coming to action sheet its applicable to that action only.

  Was this answer useful?  Yes

Dimitry

  • Dec 12th, 2006
 

We are looking for QTP with Framework experience for a contract in New York City. Vinkat you seem to be knowable in this area. Please email us and let me know if you available for consulting ....hr@das-consulting.net... (any body else that is good is also welcome to reply).

  Was this answer useful?  Yes

Shara

  • Dec 13th, 2006
 

Hi Venkat,

If you live in the NYC area or know anyone who does:

We are looking for an Automation Specialist who can build frameworks using QTP- a real QTP pro for a contract position in NYC. It is a long term contract (1+ yrs) 40 hours a week and the salary is between $40 and $50 an hour.

Please have anyone who fits this requirement send their resume to me:

hr@das-consulting.net

Thank you!

Shara Shetrit

D.A. Consulting.net

  Was this answer useful?  Yes

Govinda

  • Dec 14th, 2006
 

Hi,

I am new to QTP automatic testing. Please give an idea,how to fix the regular expression for window dialog title bar #, to check any number of tittle bar# during test run.

For example, when i record the dialog window tittle as Test No. 40, but run the test the window tittle capture Test No.41. There is a mismatch. So i need to fix the regular expression for any number of iteration. Please advise...Thanks lot

  

  Was this answer useful?  Yes

Chandra Mohan Yerrabothula

  • Dec 16th, 2006
 

Hi,

 I am Chandra Mohan, Working on QTP 9.0. When I am recording the script is recording all the functionalities. But when I was running the same, QTP is not recognizing some of those object. Can you please help me to get recognize the objects when we playback the script.

Thanks,

Chandra

  Was this answer useful?  Yes

http:truetesting.blogspot.com

  • Jan 8th, 2007
 

What kind of Application is it?
Hope it Requires some other Special Add-ins to Play.
you can check the Read me file of the QTP 9.0 to see whether it supports the Application you are using or  not.

  Was this answer useful?  Yes

venki

  • Jan 29th, 2007
 

can anyone explane test cases for trangle

  Was this answer useful?  Yes

Vannu

  • Feb 1st, 2007
 

1.The Business Process Testing model is role-based, allowing non-technical Subject Matter Experts (working in Quality Center) to collaborate effectively with Automation Engineers (working in QuickTest Professional). Subject Matter Experts define and document business processes, business components, and business process tests, while Automation Engineers define the required resources and settings, such as shared object repositories, function libraries, and recovery scenarios. Together, they can build, data-drive, document, and run business process tests, without requiring programming knowledge on the part of the Subject Matter Expert.

  Was this answer useful?  Yes

Gaurav Metkar

  • Feb 2nd, 2007
 

Really great answer !!! Venkat can you tell me that is it neccessary to learn winrunner first and then QTP ??? If no, can u please tell me what knowledge i should have so that i can learn QTP without much difficulty ?

  Was this answer useful?  Yes

Livetek

  • Mar 21st, 2007
 

Hi

I am New to Qtp tool.My project is Client Server application developed in Java.How to pick the data from the drop down list box. At the run time it does not capture the data in the record, because the QTP is unable to recognise the Drop down combo box. Is there any code for that (Descriptive programming).Can any one solve my problem plz.

Thanks,
Livetek

  Was this answer useful?  Yes

NAGAPRAKASH

  • Apr 16th, 2007
 

Global is one which can be used any place of the scripts and in any script of QTP.
Action is one which can be used only in the particular action.

  example: Global:
1. you have values which r to be used in different scripts of QTP so that u will keep the values in the global sheet which can be called in any of the scripts where u need the values from the global sheet or the variable which is declared as global.

 EX; ;Action :

 1. You have values which r not repeated so that the values r created in the action sheet which can be recalled in the particular action script or the variable which is declared in the action can be used for that action only.

i think i have given my idea which can make u understand well if not if u give fire me questions on qtp i will explain more clearly with respect to ur questions.

regards
nagaprakash

  Was this answer useful?  Yes

Guru

  • Apr 27th, 2007
 

You can learn QTP without knowing Winrunner. Winrunner is slowly going out from the market; If you know basic programming skills then you can very well pickup QTP. It is purely Vb scripts.

  Was this answer useful?  Yes

rajendra pradeep

  • May 16th, 2007
 

QTP Automation Object Model:

In an application you if u have same Objects belonging to the same Properties in that case QTP cant retrieve/recognise that object in runtime to overcome this problem we must write your script in such a way that QTP schould recognise the Objects by the "Tags"  Like

Browser("micClass:=Browser").Page("micClass:=Page").Object.Document.all "Tags"


But not not through regular Programming

Browser("micClass:=Browser").Page("micClass:=Page").WebTable("name:=xyz")

QTP Supports this type of Object Model Recognition.

  Was this answer useful?  Yes

Global in the data table is one which is used to create global data that is, the data kept in global sheet can be used any where in the QTP scrpting of that application.
Where as coming to action, the data stored in the action sheet is used only to that action, it cant be used for other scripts.

  Was this answer useful?  Yes

sujana

  • Jun 14th, 2007
 

Global Sheet: The data stored in the Global sheet can be accessed by all the actions in the test.

Whereas

The data stored in the Current or Action sheet can only be accessed by that associated Action.

Thanks

  Was this answer useful?  Yes

baskar

  • Jul 16th, 2007
 

To retrive the value from drop down list box:window name+listbox(obj name)GetRoproperty(text)

  Was this answer useful?  Yes

Naren

  • Aug 6th, 2007
 

Global : Whatever we entered input data in Global, that data we can use in any action of that script
Action : This data is limited to particular action only.

  Was this answer useful?  Yes

Neel

  • Sep 27th, 2007
 


Hi Venkat your answers are nice but exaclty same as i have read from a book. so can you explain :
1) Test Object Model,
2) Test Object &
3) Run Time Object.
in some simple and your own words as I am a fresher and struggling with the words.

  Was this answer useful?  Yes

Essentially all configuration and run functionality provided via the Quick Test interface is in some way represented in the Quick Test automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in Quick Test have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the Quick Test automation object model, along with standard programming elements such as loops and conditional statements to design your program.

  Was this answer useful?  Yes

svapatil

  • Jun 6th, 2008
 

Firstly there are two things one is QTP oject Model & QTP Automation Object Model.

The QTP object Model is  the One by using which we can have the control on the QTP tool. We can Launch the QTP tool & make the GLobal settings to  the tool by script only, like Run mode, Onerror resume next etc.( Refer the Object model Diagram in QTP help)

QTP Automation Object Model is the one which has a predefined set os Methods & properties for a specific class. 


  Was this answer useful?  Yes

Actually, QTP Framework is divided into 2 parts. They are
1. BPT (Business process testing) Framework and
2. Keyword Driven Framework.

In detail:


1. BPT: to use this Framework License is necessary to work on this. Most of the people is not working on this type of framework, Because it is very expensive to get. It is appox.8 lacs above.


2. KeyWord Driven Framework: Again this Framework is divided into 3 methodologies. i.e.,

     a. Recording Methodology
     b. Add Objects Methodology
     c. Descriptive Methodology


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions