How QTP leans objects?

来源:互联网 发布:php和mysqlweb开发 编辑:程序博客网 时间:2024/05/13 20:42

(1) It "looks" at the object being learned and stores it as a test object, determining in which test object class it fits. QTP might classify the test object as a standard windows dialog box, a web button, or a VB scroll bar object, for example.

 

(2) Then, QuickTest "considers" identification properties for the test object. For each test object class, QuickTest has a list of mandatory properties that it always learns;

   When QuickTest learns an object, it 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.

 

(3) If it is not, QuickTest adds assistive properties, one by one, to the description, until it has compiled a unique description;similar to when one person adds the hair length and color characteristics to his list

 

(4) 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

原创粉丝点击