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.
相關文章
- WinRunner和QTP對比QT
- 自動化測試工具QTPQT
- LeetCode in actionLeetCode
- action概念
- 13.there is no action mapped for namespace and action name associated with contAPPnamespace
- 安利 GitHub action - 挺香的Github
- patch_id,version, action ,status,action_time,description
- 《Data Warehouse in Action》
- [vuex] unknown action typeVue
- Github Action釋出Github
- action-service-單利多例的坑
- 什麼是 Dynatrace 裡的 User Action
- 【Azure Developer】Github Action部署資源(ARM模板)到Azure中國區時,遇見登入問題的解決辦法DeveloperGithub
- 最簡練有效的catalyst的action總結
- Yii2 Action用法
- Github Action Workflow 實踐Github
- 課時四:Action操作
- Spark in action on Kubernetes - Spark Operator的原理解析Spark
- 讓ASP.NET Web API的Action方法ASP.NETWebAPI
- vuex的 State ,Mutation ,Action ,Getter ,Module用途,關係Vue
- 使用ACTION_IMAGE_CAPTURE可能存在的風險APT
- Redux 進階 — 優雅的處理 async actionRedux
- Redux 進階 -- 優雅的處理 async actionRedux
- Angular Ngrx Store Effect 和 Action 的互動流程Angular
- Asp.Net中的Action和Func委託ASP.NET
- 2019-02-24 Taking Action
- Spark in action on Kubernetes - 儲存篇Spark
- 真香!GitHub Action一鍵部署Github
- akka-typed(4) - EventSourcedBehavior in action
- vuex核心概念---action、getter、moduleVue
- Django DRF @action 裝飾器Django
- message: "This action is unauthorized."報錯Zed
- Rail6 Action Cable 概述AI
- Github Action 快速上手指南Github
- android中activity可以響應外部的action的例子(可以Android
- web自動化測試(2):選擇selenium優勢?與PhantomJS/QTP/Monkey對比WebJSQT
- Struts2 action前的資料預處理
- django的模板層Django
- Flask——模板的使用Flask