软件测试工具之QTP中的Test Object Model

发表于:2009-09-17来源:作者:点击数: 标签:软件测试qtpQTPModelTEST
软件测试工具之 QTP 中的Test Object Model 软件测试工具 About Understanding the Test Object Model 关于了解测试对象模型 QuickTest tests your dynamically changing application by learning and identifying test objects and their expected propertie
软件测试工具之QTP中的Test Object Model  软件测试工具

About Understanding the Test Object Model

  关于了解测试对象模型

  QuickTest 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.

  QuickTest 通过记住和标识测试对象及其预期的属性和属性值,对动态更改的应用程序进行测试。在录制期间,QuickTest 对应用程序中每个对象进行分析的方式与一个人看一张图片然后记住其细节的方式大致相同。

  In 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.

  在以下叙述中,将向您介绍与测试模型相关的概念,以及 QuickTest 如何使用它所收集的信息来测试应用程序。

  1、Understanding How QuickTest Learns Objects While Recording

  了解 QuickTest 如何在录制时记住对象

  QuickTest learns objects just as you would.

  QuickTest 像您那样记住对象。

  For 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.

  例如,假定作为实验的一部分,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.

  在看到图片之前,Jonny 自己开始为测试做准备,考虑对于测试者指出的项目,需要记住该项目的哪些特征。显然,他将自动记住该项目是人、无生命物体、动物还是植物。如果是人,他将尝试记住其性别、肤色和年龄。如果是动物,他将尝试记住其类型、颜色等。

  The tester shows the scene to Jonny and points out one of three children sitting on a picnic blanket. Jonny notes that it is a caucasian girl about 8 years old. In looking at the rest of the picture, however, he realizes that one of the other children in the picture could also fit that description. In addition to learning his planned list of characteristics, he also notes that the girl he is supposed to identify has long, brown hair.

  测试者向 Jonny 展示场景,并从三个坐在野餐毯上的孩子中指定一个。Jonny 注意到这是一个 8 岁左右的白种女孩。但在查看图片中的其他内容时,他意识到图片中的另一个孩子也符合这种描述。除了记住计划的特征列表以外,Jonny 还记下自己应该识别出的这个女孩留着褐色的长发。

 

原文转自:http://www.ltesting.net