Monday, July 7, 2008

How QuickTest Learns Objects While Recording


QuickTest uses the below method when it learns objects during the recording process.

  1. First, it "looks" at the object on which you are recording and stores it as a test object,
  2. Determines the test object class that best fits it.
  3. Then, for each test object class, QuickTest has a list of mandatory properties that it always learns; When you record on an object, QuickTest always learns these default property values, and then "looks" at the rest of the objects on the page, dialog box, or other parent object to check whether this description is enough to uniquely identify the object. If it is not, QuickTest adds assistive properties, one by one, to the description, until it has compiled a unique description; If no assistive properties are available, or if those available are not sufficient to create a unique description, QuickTest adds a special ordinal identifier, such as the object's location on the page or in the source code, to create a unique description.
  4. Reads the current value of the object's properties in your application and stores the list of properties and values with the test object
  5. 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

No comments: