0% found this document useful (0 votes)
31 views

QTP Basics

CreateObject is a Visual Basic function that creates and returns a reference to an Automation object provided by an application. It requires a servername and typename argument to identify the object. An optional location argument can specify the network server. QuickTest Professional (QTP) uses different sets of object properties to identify and recognize objects in an application under test. It uses mandatory properties first, then assistive properties, followed by index, location and time properties if needed. As a last resort, it uses the object's appearance properties. There are three types of actions in QTP: non-reusable actions that can only be called once locally, reusable actions that can be called multiple times locally and by other tests,
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

QTP Basics

CreateObject is a Visual Basic function that creates and returns a reference to an Automation object provided by an application. It requires a servername and typename argument to identify the object. An optional location argument can specify the network server. QuickTest Professional (QTP) uses different sets of object properties to identify and recognize objects in an application under test. It uses mandatory properties first, then assistive properties, followed by index, location and time properties if needed. As a last resort, it uses the object's appearance properties. There are three types of actions in QTP: non-reusable actions that can only be called once locally, reusable actions that can be called multiple times locally and by other tests,
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

c 


createobject   
Creates and returns a reference to an Automation object p
syntax: CreateObject(servername.typename [, location]) p
Arguments p
servername:Required. The name of the application providing the object. p
typename : Required. The type or class of the object to create. p
location : Optional. The name of the network server where the object is to be created.

½      


mart Object Identification/recognition and GetROProperty and etROProperty.

c          

QTP recognizes all objects in the Application under test using the set of 2   
that it stores for all
Test Objects while recording. If QTP is not able to recognize the objects using the set of mandatory properties it
uses another set of properties called the

 
. Incase the assistive properties are also not enough
to uniquely identify an object QTP resorts to using the 
 
 

 for the object that are properties like
the index, location and time of creation of the object. If all this fails QTP resorts to the 2 
 

 

2  
2

© 
hared and Per Action

½         


There are three kinds of actions: p
p
non-reusable action³an action that can be called only in the test with which it is stored, and can be called only
once. p
reusable action³an action that can be called multiple times by the test with which it is stored (the local test) as
well as by other tests. p
external action³a reusable action stored with another test. External actions are read-only in the calling test, but
you can choose to use a local, editable copy of the Data Table information for the external action.p

You might also like