Now that only one person in the picture fits the characteristics he learned, he is fairly sure that he will be able to identify the girl again, even if the scene the tester shows him next week is slightly different.
注意:圖片中只有一個人符合他記住的特征,所以,即使測試者下周展示的場景稍有不同,他也相當肯定能夠再次識別出這個女孩。
Since he still has a few moments left to look at the picture, he attempts to notice other, more subtle differences between the child he is supposed to remember and the others in the picture—just in case.
由于還剩下一點看圖片的時間,因此,只是為了以防萬一,Jonny 試著注意自己應該記住的這個孩子與圖片中其他孩子之間更細微的差別。
If the two similar children in the picture appeared to be identical twins, Jonny might also take note of some less permanent feature of the child, such as the child's position on the picnic blanket. That would enable him to identify the child if he were shown another picture in which the children were sitting on the blanket in the same order.
如果圖片中兩個相似的孩子看上去像一對雙胞胎,那么 Jonny 還會記下這個孩子的一些不那么永久的特征,如這個孩子在野餐毯上的位置。這樣,如果向他展示的另一張圖片中,這些孩子仍按相同的順序坐在毯子上,他也能夠識別出這個孩子。
QuickTest uses a very similar method when it learns objects during the recording process.
QuickTest 采用了極為類似的方法,以便在錄制過程中記住對象。
First, it "looks" at the object on which you are recording and stores it as a test object, determining in which test object class it fits. Just as Jonny immediately checked whether the item was a person, animal, plant, or thing. QuickTest might classify the test object as a standard Windows dialog box (Dialog), a Web button (WebButton), or a Visual Basic scroll bar object (VbScrollBar), for example.
首先,它將“觀看”您要錄制的對象,然后將其作為測試對象進行存儲,確定該對象符合的測試對象類。正如 Jonny 會立即檢查項目是人、動物、植物還是東西,QuickTest 也會對測試對象進行分類,例如,標準 Windows 對話框 (Dialog)、Web 按鈕 (WebButton) 或 Visual Basic 滾動條對象 (VbScrollBar)。
Then, for each test object class, QuickTest has a list of mandatory properties that it always learns; similar to the list of characteristics that Jonny planned to learn before seeing the picture. 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; like when Jonny added the hair length and color characteristics to his list. 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, just as Jonny would have remembered the child's position on the picnic blanket if two of the children in the picture had been identical twins.
然后,對于每個測試對象類,QuickTest 都有一個始終要記住的強制屬性的列表,類似于 Jonny 在看到圖片之前計劃要記住的特征的列表。當您錄制對象時,QuickTest 始終記住這些默認的屬性值,然后“視圖”頁面上其余的對象、對話框或其他父對象,以檢查該描述是否足以唯一標識該對象。如果不足以進行唯一標識,QuickTest將向該描述中逐項添加輔助屬性,直到經過編譯成為唯一的描述為止,就像 Jonny 向他的列表中添加頭發的長度和顏色特征一樣。如果沒有可用的輔助屬性,或者那些可用的輔助屬性仍不足夠創建一個唯一的描述,QuickTest 將添加一個特殊的順序標識符(例如頁面上或源代碼中對象的位置)以創建唯一的描述,正如圖片中的兩個孩子是一對雙胞胎時,Jonny 要記注孩子在野餐毯上的位置一樣。
文章來源于領測軟件測試網 http://www.kjueaiud.com/