Thursday, September 25, 2008

How do I create an action template?

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 \dat folder. All new actions you create contain the script lines from the action template.

For Ex:
Here i am adding the following content in the text file.
' You are using QTP 9.0
' The author of the software is Uday

Here it shows how it looks like for every action in the QTP:


No comments: