GeekInterview.com
Series: Subject: Topic:
Question: 773 of 785

Explain in brief about the QTP Automation Object Model.

Asked by: Interview Candidate | Asked on: Aug 17th, 2005

Editorial / Best Answer

Answered by: Venkat Potluri

Answered On : 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

Answered On : Jul 26th, 2005

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

Yes  1 User has rated as useful.
  
Login to rate this answer.
Venkat Potluri

Answered On : 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 

Yes  1 User has rated as useful.
  
Login to rate this answer.
suchitra

Answered On : 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

  
Login to rate this answer.
Shermi

Answered On : 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

  
Login to rate this answer.
Arun

Answered On : 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.

Yes  1 User has rated as useful.
  
Login to rate this answer.
Shashank Gokhale

Answered On : 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 !

  
Login to rate this answer.
vasu

Answered On : Jan 24th, 2006

Hello venkat

nice answers

1) what is btp in qtp?

2)what is size of objectrepository?

3)wht is dictonary object?

  
Login to rate this answer.
smitha

Answered On : Feb 16th, 2006

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

Yes  1 User has rated as useful.
  
Login to rate this answer.
Pavanraj

Answered On : Mar 13th, 2006

Shermi,

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

  
Login to rate this answer.
Pavanraj

Answered On : 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

Yes  1 User has rated as useful.
  
Login to rate this answer.
gm

Answered On : 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...

  
Login to rate this answer.
Thatiaprth Brahma Reddy

Answered On : Mar 23rd, 2006

QTP supports .net application.

so every .net application supports object models

  
Login to rate this answer.
raj

Answered On : Mar 28th, 2006

QTP support .Net applivation but Winrunner is not support.

  
Login to rate this answer.
satish

Answered On : Apr 10th, 2006

hi plz give me a brief answer to my Question

  
Login to rate this answer.
yoganandam

Answered On : 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 .....  

  
Login to rate this answer.
DCP

Answered On : 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.

  
Login to rate this answer.
kumaresan

Answered On : 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 programsYou 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 databaseYou can write a program that iterates over your entire test or component database to accomplish a certain goal. For example:
    • Updating valuesopening 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 componentsWhen 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 applicationsYou 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.

  
Login to rate this answer.
kareem

Answered On : 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

  
Login to rate this answer.
jagan

Answered On : Sep 21st, 2006

Venkat,

Could you please give QTP coding standards.

Thanks

Jagan

  
Login to rate this answer.
hariprasad

Answered On : 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.........

  
Login to rate this answer.
Ravikumar

Answered On : 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.

  
Login to rate this answer.
Dimitry

Answered On : 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).

  
Login to rate this answer.
Shara

Answered On : 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

  
Login to rate this answer.
Govinda

Answered On : 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

  

  
Login to rate this answer.
Chandra Mohan Yerrabothula

Answered On : 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

  
Login to rate this answer.
http:truetesting.blogspot.com

Answered On : 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.

  
Login to rate this answer.
venki

Answered On : Jan 29th, 2007

can anyone explane test cases for trangle

  
Login to rate this answer.
Vannu

Answered On : Feb 1st, 2007

View all answers by Vannu

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.

  
Login to rate this answer.
Gaurav Metkar

Answered On : 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 ?

  
Login to rate this answer.
Livetek

Answered On : 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

  
Login to rate this answer.
NAGAPRAKASH

Answered On : 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

  
Login to rate this answer.
Guru

Answered On : 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.

  
Login to rate this answer.
rajendra pradeep

Answered On : 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/recognisethat 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.

  
Login to rate this answer.
nagaprakash_b

Answered On : May 24th, 2007

View all answers by nagaprakash_b

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.

  
Login to rate this answer.
sujana

Answered On : 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 canonly be accessed bythatassociated Action.

Thanks

  
Login to rate this answer.
baskar

Answered On : Jul 16th, 2007

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

  
Login to rate this answer.
Naren

Answered On : Aug 6th, 2007

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

  
Login to rate this answer.
Neel

Answered On : 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.

  
Login to rate this answer.
laxmichoudhari

Answered On : Dec 12th, 2007

View all answers by laxmichoudhari

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.

  
Login to rate this answer.
svapatil

Answered On : Jun 6th, 2008

View all answers by svapatil

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. 


  
Login to rate this answer.
santoshnathan

Answered On : Aug 12th, 2008

View all answers by santoshnathan

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


  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.