QTP測試指令碼的維護 - 使用Update執行模式和Maintenance執行模式
Why Tests Fail 為什麼指令碼執行會失敗?
Tests fail when QuickTest encounters a step it cannot perform or the results of a step indicate failure. In many cases this is due to the application being tested not functioning properly. QuickTest then provides you with test results that assist you in understanding how to fix your application.
Sometimes a test fails because the application being tested has changed from when the test was created and the QuickTest test needs to be updated to reflect those changes. Your object repository may also be missing some of the objects it needs to run the test. QuickTest provides tools that help identify and resolve some of these issues.
通常是物件發生改變或者是檢查點發生了改變。這就帶來了測試指令碼維護的問題。在QTP中,可以使用Maintenance執行模式和Update執行模式來進行指令碼的自動化更新和維護。
Running Tests with the Maintenance Run Wizard
The Maintenance Run Wizard helps you to maintain your test when it encounters the following problems and provides the following solutions:
Maintenance執行模式主要解決物件識別導致的指令碼失敗的問題。
關於Maintenance執行模式可以觀看QTP10附帶的視訊(Help->Product Feature Movies->Maintenance Run Mode)。
Updating a Test Using the Update Run Mode Option
When you run a test in Update Run Mode, QuickTest runs the test to update the test object descriptions, the Active Screen images and values, and/or the expected checkpoint values. After you save the test, the updated data is used for subsequent runs.
You can specify one or more of the following information types to update:
Update test object descriptions. QuickTest updates the set of properties for each object class in your associated object repositories according to the properties currently defined in the Object Identification dialog box. You can use this option to modify the set of properties used to identify an object of a certain type.
Update checkpoint properties and output property values. QuickTest updates the expected values of your checkpoints to reflect any changes that may have occurred in your application since you created the test and updates the list of items that can be retrieved in your output value steps.
Update Active Screen images and values. QuickTest updates images and property values in the Active Screen to reflect any changes that may have occurred in your application since you recorded the test or if the Active Screen does not appear as it should. For example, suppose a dialog box in your application has changed since you recorded your test. You can update the test to update the dialog box appearance and its properties in the Active Screen.
使用Update執行模式可以在回放指令碼過程中更新測試物件描述、檢查點屬性和輸出屬性值、更新Active Screen。
相關文章
- node 執行JavaScript 指令碼 測試axiosJavaScript指令碼iOS
- webpack開發模式和生產模式設定及不同環境指令碼執行Web模式指令碼
- 通過RFT命令列執行測試指令碼命令列指令碼
- 如何在 Linux 中以指令碼模式執行 TopLinux指令碼模式
- PHP執行模式PHP模式
- PHP 執行模式PHP模式
- CUDA執行模式模式
- 判斷ABAP程式碼是否處於update模式下執行的工具類模式
- unittest 單元測試框架教程 1-執行測試指令碼框架指令碼
- java執行緒之守護執行緒和使用者執行緒Java執行緒
- 執行 測試
- seleniumGrid分散式遠端執行測試指令碼分散式指令碼
- Seata的AT模式的執行流程模式
- 執行python指令碼後臺執行Python指令碼
- RouterOS 限速指令碼和限執行緒指令碼ROS指令碼執行緒
- 使用expect執行動態指令碼指令碼
- 執行shell指令碼指令碼
- 指令碼執行方式指令碼
- Spark學習(一)——執行模式與執行流程Spark模式
- 使用Gradle執行整合測試Gradle
- 認識PHP執行模式PHP模式
- 多執行緒Reactor模式執行緒React模式
- Jboss 後臺執行模式模式
- ros 多執行緒模式ROS執行緒模式
- 如何在 Shell 指令碼中執行語法檢查除錯模式指令碼除錯模式
- 執行Shell指令碼的方式指令碼
- PHP單元測試-保障程式碼正確執行的護衛神PHP
- CentOS使用expect批次遠端執行指令碼和命令CentOS指令碼
- 多執行緒下指令重排與DCL單列模式執行緒模式
- 使用CRONTAB呼叫shell指令碼執行EXP指令碼
- 使用QTP進行WEB頁面效能測試QTWeb
- mybatis執行sql指令碼MyBatisSQL指令碼
- crontab執行shell指令碼指令碼
- PowerShell 指令碼執行策略指令碼
- SQL SERVER執行指令碼SQLServer指令碼
- 指令碼後臺執行指令碼
- 24. 一個普通main方法的執行,是單執行緒模式還是多執行緒模式?為什麼?AI執行緒模式
- 執行緒安全的單例模式執行緒單例模式