Saturday 28 April 2012

Ordinal Identifier in QTP

Ordinal identifier is the one of the most important property of any object. You can see this property at right side of object repository window in QTP. Press Ctrl+R to open object repository window.

The ordinal identifier assigns the object a numerical value that indicates its order relative to other objects with an otherwise identical description (objects that have the same values for all properties specified in the mandatory and assistive property lists). This ordered value enables QTP to create a unique description when the mandatory and assistive properties are not sufficient to do so.

In addition, even if QTP learns an ordinal identifier, it will use the identifier during the run session only if the learned description and the Smart Identification mechanism are not sufficient to identify the object in your application. If QTP can use other identification properties to identify the object during a run session, the ordinal identifier is ignored.

QTP can use the following types of ordinal identifiers to identify an object:

  • Index. Indicates the order in which the object appears in the application code relative to other objects.
  • Location. Indicates the order in which the object appears within the parent window, frame, or dialog box relative to other objects.
  • CreationTime. (Browser objects only.) Indicates the order in which the browser was opened relative to other open browsers.


By: Mann Bhammar
      Test Analyst

No comments:

Post a Comment