Test Design StudioGo to Previous Topic: BuildGo to Next Topic: Project-Specific Property Pages

Build Events

Build Events allow you to specify actions to be executed before and after the execution of the Build Process for a project. These actions are defined using command-line statements like those that would be executed from a command-line or DOS Batch file. In fact, all of your statements are placed directly inside a DOS Batch file for execution. The following properties are available:
PropertyDescription
Pre-build event command lineStatements to be executed before the Build Process executes.
Post-build event command lineStatements to be executed after the Build Process completes.
Run the post-build eventIndicates the condition under which the Post-build event statements are executed. Select 'Always' to execute these statements after every build. Select 'On successful build' if you only want to execute the statements when the Build Process completes successfully.

When defining your command line statements, you may use the following macros or replacement parameters within your statements. These values are replaced with the contextual equivalent value before execution. Use the < Add Macro button to see a convenient list of options.

Replacement Parameter Description
$(ProjectName) Project Name. The name of the project.
$(ProjectDir) Project Directory. The full path to the directory where the project file is located.
$(ProjectFileName) Project File Name. The full name of the project configuration file only.
$(ProjectPath) Project Path. The full path to the project file.
$(ProjectExt) Project Extension. The file extension of the project file.
$(SolutionName) Solution Name. The name of the solution.
$(SolutionDir) Solution Directory. The full path to the directory where the solution file is located.
$(SolutionFileName) Solution File Name. The full name of the solution configuration file only.
$(SolutionPath) Solution Path. The full path to the solution file.
$(SolutionExt) Solution Extension. The file extension of the solution file.
$(QualityCenterServer) ALM Server. (Available only when a default ALM connection is defined for a project) The URL of the HPE Application Lifecycle Management server.
$(QualityCenterDomain) ALM Domain. (Available only when a default ALM connection is defined for a project) The name of the HPE Application Lifecycle Management domain.
$(QualityCenterProject) ALM Project. (Available only when a default ALM connection is defined for a project) The name of the HPE Application Lifecycle Management project.
$(QualityCenterUsername) ALM User Name. (Available only when a default ALM connection is defined for a project) The user name used to login to the HPE Application Lifecycle Management project.
$(QualityCenterPassword) ALM Password. (Available only when a default ALM connection is defined for a project) The password used to login to the HPE Application Lifecycle Managementproject.
Warning:   This value is not encrypted when output.
Tip:    Please contact Patterson Consulting if you feel additional replacement parameters are necessary.