[22] QTP study No.7_Understanding Checkpoints Type

2007/11/08 17:39

继续翻译QTP的使用手册吧,有些工具学过了不用,不过几天就要忘记了。

以前都说好记性不如烂笔头,现在有了电脑,很少还愿意在本子上写写画画了,人都变懒了,什么都不想记下来,有的时候甚至连键盘也懒得敲了。

因为给我一分钟,我google,百度一下就知道得和你一样多。

因为有复制和粘贴。

¥# @ ×…&~!#¥…%

其实这样真不好,什么都依赖网络,似乎是全才,天文地理无所不知。可是如果这样下来,人还有自己的思想吗?

人生如此美好,我却如此暴躁,这样不好不好。

翻译就翻译呗,扯了一大堆。还是看文章吧。(其实充分利用资源也是一种本领啊,咔咔)

Creating Checkpoints

In the previous lessons, you created and ran a test checking that a series of steps performed on the Mercury Tours Web site runs smoothly. A checkpoint verifies that expected information is displayed in your application while the test is running.

Understanding Checkpoint Types

QuickTest Professional offers the following types of checkpoints:

 

You can add most checkpoints to your test either while recording or afterward.

Note: When QuickTest creates a checkpoint, it assigns a name based on information inside the checkpoint—the checked value, for example. The checkpoint name remains unchanged, even if you subsequently modify the information on which it was based. Keep this in mind when looking for checkpoints displayed in the Keyword View. However, note that QuickTest may shorten the name displayed in the Keyword View.

插入检查点

前面的课程中,已经学会了在Mercury Tours站点中录制回放测试脚本的基本步骤。接下来可以来学习向测试脚本中插入检查点进行验证。

检查点的种类

QuickTest Professional提供了以下几种检查点:

可以在录制过程中或者维护过程中任意插入多个检查点。

注意:在QuickTest插入检查点时,会根据插入检查点的信息(验证值)来为检查点分配一个名称。即使后来修改了这些信息后,这个名称也不会发生变化。记住这个名称,在Keyword 视图中查看检查点时,可能Quick TestKeyword View视图中只显示了检查点的缩略名,也仍可以根据这个相关名称很快找出所需要查看的检查点。

posted @ 2008-03-18 15:54  Atine  阅读(218)  评论(1编辑  收藏  举报