This topic describe saving a Vuser script as a template for future scripts, and working with the script templates.
About user-defined templates
You can save a script with a specific configuration as a user-defined template. You can then use this template as a basis for creating future scripts.
User-defined templates support the following files and data:
Generic settings, such as Recording options and General options, are not supported as they are not relevant to a specific script.
Create a Vuser script template
- Open a script in VuGen.
- Select File > User-Defined Templates > Export to Template.
- Enter a name and location for the template.
- Click OK to create the template.
Create a Vuser script from a template
Select File > New Script and Solution > VuGen > User Templates and select the template file (only available after your create at least one template).
Rename a Vuser script template
- Select File > User-Defined Templates > Manage from Explorer
In the Explorer dialog box:
- Rename the content file (.zip).
- Rename the description file (.xpt).
Using a text editor, modify the following tags in the .xpt file:
- Name tag:
- File tag src property:
<File name="template_temp.zip" src="
.zip" binary="True" />
- Name tag:
If you configure a script for a specific protocol and then save the script as a template, further scripts based on that template will work only with that same protocol.
After you create a template, you cannot edit it directly in VuGen. To make any changes, open the template and save it again with another name or overwrite the existing template.
If you regenerate an original script from a template, you will lose all of your manual changes.