[17] QTP study No.2_Quick Test Window

2007/10/30 13:32

QuickTest Window

Before you begin creating tests, you should familiarize yourself with the main QuickTest window.

The image below shows a QuickTest window as it would appear after you record a test, with all toolbars and the Data Table and Active Screen panes displayed:

The QuickTest window contains the following key elements:

·         Title bar. Displays the name of the currently open test.

·         Menu bar. Displays menus of QuickTest commands.

·         Standard toolbar. Contains buttons to assist you in managing your test.

         

·         View toolbar. Contains buttons to view the various panes that can assist you in the testing process.

                       

·         Tools toolbar. Contains buttons to assist you in setting options, checking syntax, and working with the Object Spy.

                  

·         Automation toolbar. Contains buttons to assist you in the testing process.

                

·         Insert toolbar. Contains buttons to assist you in inserting steps, actions, checkpoints, and output values into your test.

  

                

·         Edit toolbar. Contains buttons to assist you in editing your test steps.

                

·         Debug toolbar. Contains buttons to assist you in debugging tests.

                  

Note: The Debug toolbar is not displayed when you open QuickTest for the first time. You can display the Debug toolbar by choosing View > Toolbars > Debug, or by clicking the Debug Viewer button.  

·         Action toolbar. Contains buttons and a list of actions, enabling you to view the details of an individual action or the entire test flow.

           

Note: The Action toolbar is displayed only in the Keyword View. It is not displayed when you open QuickTest for the first time. You can display the Action toolbar by choosing View > Toolbars > Action. If you insert a reusable or external action in a test, the Action toolbar is displayed automatically in the Keyword View.

·         Test pane. Contains the Keyword View and Expert View tabs.

·         Active Screen. Provides a snapshot of your application as it appeared when you performed a certain step during the recording session.

·         Data Table. Assists you in parameterizing your test.

·         Debug Viewer pane. Assists you in debugging your test. The Debug Viewer pane contains the Watch, Variables, and Command tabs. (The Debug Viewer pane is not displayed when you open QuickTest for the first time. You can display the Debug Viewer by choosing View > Debug Viewer, or by clicking the Debug Viewer button.)

·            Information pane. Displays a list of syntax errors found in your test.

·            Missing Resources pane. Provides a list of the resources that are specified in your test but cannot be found, such as unmapped shared object repositories and parameters that are connected to shared object repositories. (The Missing Resources pane is not displayed when you open QuickTest for the first time. You can display the Missing Resources pane by choosing View > Missing Resources, or by clicking the Missing Resources button.)

·          Status bar. Displays the status of the QuickTest application and other relevant information.


2007/10/30 13:39

Quick Test 界面

在创建脚本之前,先熟悉Quick Test的程序界面。

下图所示的是录入脚本之后的Quick Test主窗口,显示了所有工具栏(toolbars)、数据表(data table)以及活动窗口(active screen):
   

Quick Test界面包含如下的界面元素:

·         标题栏:显示当前打开的测试脚本的名称。

·         菜单栏:显示Quick Test的所有命令项。

·         标准工具栏:包含管理测试脚本的所有按钮。
     

·         查看工具栏:包含在测试过程中查看各种面板的所有按钮。
    

·         工作工具栏:包含选项、语法检查以及对象间谍按钮。
    

·         控制工具栏:包含录制脚本的步骤的所有按钮。

    

·         插入工具栏:包含插入步骤、动作、检查点以及输出值等按钮。

    

·         编辑工具栏:包含编辑测试步骤所需按钮。

    

·         调试工具栏:包含调试脚本所需按钮。

    

注意:在首次执行Quick Test程序的时候,界面中没有显示调试工具栏。显示调试工具栏可以选择查看->工具栏->调试,或者点击调试查看按钮

·         动作工具栏:包含按钮和动作列表,具备查看单个动作和整个测试流程的功能。

    

注意:动作工具栏只在关键字视图中显示。在首次执行Quick Test程序的时候,界面中没有显示动作工具栏。显示动作工具栏可以选择查看->工具栏->动作。如果在脚本中插入可重用或者外部的动作,该动作工具栏会自动显示在关键字视图中。

·         测试面板:包含关键字视图和专家视图。

·         活动窗口:提供在录制过程中对执行的某些步骤进行快照的功能。

·         数据表:测试数据,设定测试参数等功能。

·         调试视图面板:支持调试脚本,包含WatchVariables以及Command栏。 (调试视图面板在首次执行Quick Test程序的时候不显示在界面中。显示调试视图面板可以选择查看->调试视图,或者点击调试视图按钮)

·         信息面板:显示测试过程中的语法错误。

·         错误资源面板:提供在测试脚本中已定义但无法确定的资源显示。(错误资源面板在在首次执行Quick Test程序的时候不显示在界面中。显示错误资源面板可以选择查看->错误资源,或者点击错误资源按钮)

·         状态栏:显示QuickTest应用程序状态等相关信息。


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