Chapter 22

Test Object Learning Mechanism

UFT captures the object definition in object repository and during test execution uses this definition to locate objects in UI. Object definition can be added to object repository by using Objet Spy tool or by using the add objects to object repository button of OR.

HOW UFT LEARNS OBJECT DEFINITION?

Object definitions which help uniquely describe an object can be one of the following:

  • Object source index
  • Object automatic xpath
  • Object description properties such as
    • Object attributes such as html id, tag name, etc.
    • Object absolute ordinates, logical ordinates, etc.
    • Object automatic xpath
    • Object XPath
    • Object CSS path
  • Object Visual Relation Identifiers (VRI)
  • Object ordinal identifiers
    • Object source index ...

Get Agile Automation and Unified Funtional Testing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.