Sunday 5 January 2014

Differance between Index,Location and Creation time Property

Ordinal Identifier:

Ordinal identifier have the three property

-> Index property
-> Location Property
-> Creation time property


Index property :

-> while learning object, QTP assign index value to test object. The index value starts from Zero.

-> The value is based on the order in which the object appears
within the source code. This is not based on window,frame or dialog box.

-> Index property values are object-specific. Therefore, if we use Index:=3 to describe a WebEdit test object, QTP searches for the fourth WebEdit object in the page.


Location Property: :

-> While learning an object, QTP can assign a value to the test object’s Location property to
uniquely identify the object. The value is based on the order in which the object appears
within the window, frame, or dialog box, in relation to other objects with identical
properties.

-> The first occurrence of the object is 0. Values are assigned in columns from top to bottom, and left to right.

-> if we use Location:=3 to describe a
WinButton test object, QTP searches from top to bottom, and left to right for the fourth
WinButton object in the page


Creation time property :

->  It is applicable for Browser Object only.

-> This is used only for browser objects. In case 2 browsers with similar properties exist, then the one that is created first and next are considered.

-> For example, if we record a test on three identical browsers that are opened at
9:01 pm, 9:03 pm, and 9:05 pm, QTP assigns the CreationTime values, as follows:
CreationTime = 0 to the 9:01 am browser, CreationTime = 1 to the 9:03 am browser, and
CreationTime = 2 to the 9:06 am browser.

No comments:

Post a Comment