QuickTest Professional™ - An Automation Tool by Mercury - Questions and Answers

Thursday, July 06, 2006

QTP Question 17: What is test object model in QTP?

What is test object model in QTP?
The test object model is a large set of object types or classes that QuickTest 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 QuickTest can record for it.

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

A run-time object is the actual object in your Web site or application on which methods are performed during the run session. When you perform an operation on your application while recording,
QuickTest:

➤ identifies the QuickTest test object class that represents the object on which you performed the operation and creates the appropriate test object
➤ reads the current value of the object’s properties in your application and stores the list of properties and values with the test object
➤ chooses a unique name for the object, generally using the value of one of its prominent properties
➤ records the operation that you performed on the object using the appropriate QuickTest test object method

For example, suppose you click on a Find button with the following HTML
source code:

< type="submit" name="Find" value="Find">
QuickTest identifies the object that you clicked as a WebButton test object. It creates a WebButton object with the name Find, and records the following properties and values for the Find WebButton. It also records that you performed a Click method on the WebButton.

QuickTest displays your step in the Expert View like this:

Browser("Mercury Interactive").Page("Mercury Interactive").
WebButton("Find").Click

1 Comments:

  • You wrote:
    "It creates a WebButton object with the name Find, and records the following properties and values for the Find WebButton."

    But you didn't provide list of the recorded properties.

    I'm sure that you copied/pasted (=stole) this article.

    And you even didn't read what you stole. It's a pity...

    By Blogger Dmitry Motevich, at 6:15 AM  

Post a Comment

<< Home


Index of QTP Questions

  • QTP Question 01: What is QTPro? What is Quick Test Pro? What is Quick Test Professional?
  • QTP Question 02: What's New in QuickTest Professional 8.2?
  • QTP Question 03: Explain QTP Testing process?
  • QTP Question 04: How Does Run time data (Parameterization) is handled in QTP?
  • QTP Question 05: What is keyword view and Expert view in QTP?
  • QTP Question 06: Explain about the Test Fusion Report of QTP?
  • QTP Question 07: To which environments does QTP supports?
  • QTP Question 08: What is QTP or Quick Test Pro?
  • QTP Question 09: Explain the QTP Tool interface
  • QTP Question 10: How QTP recognizes Objects in AUT?
  • QTP Question 11: What are the types of Object Repositorys in QTP?
  • QTP Question 12: Explain the check points in QTP?
  • QTP Question 13: In how many ways we can add check points to an application using QTP?
  • QTP Question 14: How does QTP identifies the object in the application?
  • QTP Question 15: If an application name is changes frequently i.e while recording it has name, in this case how does QTP handles?
  •