[17] QTP study No.2_Quick Test Window

來源:互聯網
上載者:User
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程式的時候,介面中沒有顯示動作工具列。顯示動作工具列可以選擇查看->工具列->動作。如果在指令碼中插入可重用或者外部的動作,該動作工具列會自動顯示在關鍵字視圖中。

·         測試面板:包含關鍵字視圖和專家視圖。

·         使用中視窗:提供在錄製過程中對執行的某些步驟進行快照的功能。

·         資料表:測試資料,設定測試參數等功能。

·         調試視圖面板:支援調試指令碼,包含Watch,Variables以及Command欄。 (調試視圖面板在首次執行Quick Test程式的時候不顯示在介面中。顯示調試視圖面板可以選擇查看->調試視圖,或者點擊調試視圖按鈕。)

·         資訊面板:顯示測試過程中的語法錯誤。

·         錯誤資源面板:提供在測試指令碼中已定義但無法確定的資源顯示。(錯誤資源面板在在首次執行Quick Test程式的時候不顯示在介面中。顯示錯誤資源面板可以選擇查看->錯誤資源,或者點擊錯誤資源按鈕。)

·         狀態列:顯示QuickTest應用程式狀態等相關資訊。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.