Test Design StudioGo to Previous Topic: Template FilesGo to Next Topic: Syntax Checking

Replacement Parameters

Replacement Parameters are placed within XML template files and standard text files as placeholders for data that will be generated when the template is created. All replacement parameters begin and end with a $ character. The built-in replacement parameters are indicating in the table below.

Replacement Parameter Description
$time$ The current date and time in combined short formats (based on system locale settings).
$longtime$ The current time in long format (based on system locale settings).
$shorttime$ The current time in short format (based on system locale settings).
$longdate$ The current date in long format (based on system locale settings).
$shortdate$ The current date in short format (based on system locale settings).
$epochtime$ The current time indicated by the number of seconds elapsed since Jan 1, 1970.
$year$ The current 4-digit year.
$year2$ The current 2-digit year.
$month$ The current 2-digit month.
$monthname$ The current month's full name.
$monthnameabv$ The current month's abbreviated name.
$day$ The current 2-digit day.
$dayname$ The current day's full name.
$daynameabv$ The current day's abbreviated name.
$hour$ The current 2-digit hour (12-hour format).
$hour24$ The current 2-digit hour (24-hour format).
$minute$ The current 2-digit minute.
$second$ The current 2-digit second.
$time-ampm$ The current time of the day as AM or PM.
$username$ The Windows user name of the logged in user.
$userdomain$ The Windows domain of the logged in user.
$machinename$ The name of the host computer.
$installpath$ The full path to the installation directory of Test Design Studio (i.e. C:\Program Files (x86)\Patterson Consulting\Test Design Studio on 64-bit operating system).
$registered-organization$ The registered organization of the user based on the system settings.
$registered-owner$ The registered owner of the user based on the system settings.
$windows-version$ The version of Windows (i.e. 5.1 for WindowsXP).
$windows-buildnumber$ The build of Windows (i.e. 2600).
$windows-servicepack$ The service pack of Windows (i.e. Service Pack 2).
$windows-productname$ The product name of Windows (i.e. Microsoft Windows XP for WindowsXP).
$guid1$ - $guid20$ 20 unique GUID values that are generated specifically for the template and will not change during the life of the template creation.
$fileinputname$ The base name provided for the file (excluding any file extension) from the New File or New Project dialog.
$safeinputname$ The base name provided for the file (excluding any file extension) from the New File or New Project dialog with all unsafe characters removed. Safe characters are alphanumeric and underscore (_).
$fileinputfullname$ The full name provided for the file (including any file extension) from the New File or New Project dialog.
$fileinputext$ The file extension provided for the file from the New File or New Project dialog. If no extension was specified, the default extension will be used (when available).
$folderpath$ The full path of the folder where the new file will be created.
$folderpathescaped$ The full path of the folder where the new file will be created using \\ for the directory separator.
$projectname$ The name of the project.
$safeprojectname$ The name of the project with all unsafe characters removed. Safe characters are alphanumeric and underscore (_).
$projectfolderpath$ The full path of the folder where the project is located.
$projectfolderpathescaped$ The full path of the folder where the project is located using \\ for the directory separator.
$solutionname$ The name of the solution.
$solutionfolderpath$ The full path of the folder where the solution is located.
$solutionfolderpathescaped$ The full path of the folder where the solution is located using \\ for the directory separator.
Tip:   Please contact Patterson Consulting if you feel additional replacement parameters are necessary.