What is test object model in QTP ?

Answer Posted / zia ur rehman

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.

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 Keyword View like this:
QuickTest displays your step in the Expert View like this:
Browser("Mercury Interactive").Page("Mercury Interactive").
WebButton("Find").Click

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when a test case is written how u test using qtp

1744


What is difference between shared and local object repository?

674


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1622


How many types of parameters are available in quicktest professional?

615


Explain how qtp identifies objects?

662






How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1417


What is the script for database check point, bitmapchek point, regular expression ?

1652


banking domain description for software tester for interview

3542


Explain measuring transaction.

680


How to test login module with different username and password by using data driven testing in QTP?

721


what is the frame work in J-meter?

1702


Explain the use of action split in qtp?

655


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1467


how to find that tools work well with your existing system?

1494


How can you exit from an action?

693