QTP的Action模板
在QTP的安裝目錄,例如C:/Program Files/HP/QuickTest Professional/dat,建立一個名為ActionTemplate.mst的檔案,檔案中寫模板內容,例如:
' -----------------------------------------------------------
' Author:
' Create Date:
' Revision:
' -----------------------------------------------------------
儲存後,啟動QTP,這樣每次建立的Action都會包含模板中的內容。
除了在模板中寫註釋頭資訊外,還可以把一些每個Action都需要載入的函式或語句都寫上,例如寫入ExecuteFile語句載入VBS檔案。
If you want to include one or more statements in every new action in your test, you can create an action template. For example, if you always enter your name as the author of an action, you can add this comment line to your action template. An action template applies only to actions created on your computer.
To create an action template:
Create a text file containing the comments, function calls, and other statements that you want to include in your action template. The text file must be in the structure and format used in the Expert View.
Save the text file as ActionTemplate.mst in your <QuickTest Installation Folder>/dat folder. All new actions you create contain the script lines from the action template.
Note: Only the file name ActionTemplate.mst is recognized as an action template.
相關文章
- QTP的TextUtil物件的使用QT物件
- QTP整合SikuliQT
- 安裝QTP後,啟動qtp程式自動退出QT
- QTP 10 破解 之路QT
- QTP連線OracleQTOracle
- AutoIt vs. QTPQT
- struts2的異常There is no Action mapped for namespace / and action nameAPPnamespace
- QTP讀取Excel資料的方法QTExcel
- WinRunner和QTP對比QT
- QTP問與答(轉)QT
- RFT和QTP與AutoItQT
- QTP關鍵技術QT
- QTP測試AJAX時的等待問題QT
- QTP - 指令碼相關收集QT指令碼
- QTP測試Yahoo郵箱QT
- 安利 GitHub action - 挺香的Github
- patch_id,version, action ,status,action_time,description
- Action With AxiosiOS
- 跟小師父學習QTP後的總結QT
- WEB的QTP原型框架PAFAWEB(增強型SAFFRON)WebQT原型框架
- QTP處理驗證碼的一種方法QT
- QTP呼叫外部應用程式的4種方法QT
- QTP的智慧識別(Smart Identification)過程QTIDE
- QTP10除錯時檢視變數顯示空白 - 補丁QTP_00591QT除錯變數
- 13.there is no action mapped for namespace and action name associated with contAPPnamespace
- 在QTP中使用Eval與ExecuteQT
- QTP測試QQ登入介面QT
- QTP測試Windows計算器QTWindows
- QTP測試WinToolbar控制元件QT控制元件
- QTP學習筆記(上)薦QT筆記
- action中json的應用JSON
- 關於action的error問題Error
- 【Azure Developer】Github Action部署資源(ARM模板)到Azure中國區時,遇見登入問題的解決辦法DeveloperGithub
- TestingAnywhere - 聲稱是QTP的替代者QT
- 用Watir測試QTP的Demo程式Mercury ToursQT
- Github Action釋出Github
- SSH框架之Action框架
- LeetCode in actionLeetCode