QTP中的Test Object Model(测试对象模型)--双语版
上一篇 / 下一篇 2009-09-14 16:00:40 / 个人分类:转贴好文
一、
1]h'lI.E0About Understanding the Test Object Model
,|BSL#Ob!Hx0关于了解测试对象模型
AXP(E2A$j:Mx0QuickTest tests your dynamically changing application by learning and identifying test objects and their expected properties and values. During recording QuickTest analyzes each object in your application much the same way that a person would look at a photograph and remember its details.
a'k,T"b(?0QuickTest通过记住和标识测试对象及其预期的属性和属性值,对动态更改的应用程序进行测试。在录制期间,QuickTest对应用程序中每个对象进行分析的方式与一个人看一张图片然后记住其细节的方式大致相同。
V5X.@2M;b K JI-k0In the following narrative you will be introduced to the concepts related to the test object model and how QuickTest uses the information it gathers to test your application.51Testing软件测试网(}c\nwu
在以下叙述中,将向您介绍与测试模型相关的概念,以及QuickTest如何使用它所收集的信息来测试应用程序。
Ku]{,|#{G
}c8k:zb01、
:Ds3{9x3UZ ~3C0Understanding How QuickTest Learns Objects While Recording51Testing软件测试网t4e_4r.KT{#P2L_ ?
了解QuickTest如何在录制时记住对象
N0h&`2M;EsRVz0QuickTest learns objects just as you would.51Testing软件测试网0PL
eA"QF:q
QuickTest像您那样记住对象。
S3o&c2Yt/{6~0For example, suppose as part of an experiment, Jonny is told that he will be shown a photograph of a picnic scene for a few seconds during which someone will point out one item in the picture. Jonny is told that he will be expected to identify that item again in identical or similar pictures one week from today.
oho!L)s,o Of8o0例如,假定作为实验的一部分,Jonny被通知将向他展示一张野餐场景的图片,时间为几秒钟,在此期间,将会有人指出图片中的一个项目。自今天起一周后,Jonny需要在相同或相似的图片中再次识别出该项目。
Before he is shown the photograph, Jonny begins preparing himself for the test by thinking about which characteristics he wants to learn about the item that the tester indicates. Obviously, he will automatically note whether it is a person, inanimate object, animal, or plant. Then, if it is a person, he will try to commit to memory the gender, skin color, and age. If it is an animal, he will try to remember the type of animal, its color, and so forth.
:r*|3mu9ysQ0在看到图片之前,Jonny自己开始为测试做准备,考虑对于测试者指出的项目,需要记住该项目的哪些特征。显然,他将自动记住该项目是人、无生命物体、动物还是植物。如果是人,他将尝试记住其性别、肤色和年龄。如果是动物,他将尝试记住其类型、颜色等。