The following contains data you may want to use in your report header:
| Field | Description | 
|---|---|
| ${report.name} | The name of the report. | 
| ${report.projectName} | The name of the project where the report is executed. | 
| ${report.description} | The description of the report. | 
| ${report.executedBy} | The login name of the user who executed the report. | 
| ${report.generatedOn} | The date and time when the report was executed. | 
| ${report.generatedOnWeek} | The week number of when the report was executed. | 
The following sections describe how to access and display different data for your report.
«[#list rows as r]»
«${r.TestDefID}» - «${r.TestName}»
«[/#list]» 
                     				The beginning of the loop is defined by [#list rows as r] and the end by [/#list]. The row data within the loop is referenced with r which allows you to get Test Name within the loop by referencing it with ${r.TestName}.
The above example would iterate through all rows and the rendered report would show a list of tests with their id and their name.
| «${headers[3]}»|«${headers[3].@name}» | «${headers[4]}»|«${headers[4].@index}» | 
|---|---|
| «@before-row[#list rows as r]»«${r.ReqName}»«@after-row[/#list]» | «${r.ReqDescription.@html}» | 
«[#list sub1.rows as sr]» 
  «${sr.TestID}» «${sr.cols[1]}»
«[/#list]»  
                        				You may have changed the label of a field but the mail merge reference still has its original value. For example, you may receive an error message that the field ${r.requirementName} doesn't exist. In your document you see the field ${r.reqName}. When you right click this field and select Edit Field, you will see that the reference is still ${r.requirementName}. Don't forget to change mail merge fields via Edit field.
The following sample Word report shows a report with manual tests containing steps.
Report generated: «${report.generatedOn}» «${report.generatedOnWeek}»
«${report.name}»
Project Name          «${report.projectName}»
Report Description    «${report.description}»
Report Executed By    «${report.executedBy}»
«[#list rows as r]»«[#assign firstRow=(r_index==0 || rows[r_index-1].ManualTestDefID != r.ManualTestDefID)]»«[#if firstRow]»
«${r.TestDefinitionName}»
«${r.TestDefinitionDescription.@html}»
Status: «${r.StatusName}» 
Planned Time [hh:mm]: «[#if r.PlannedTime!="null"]»«${r.PlannedTime}»«[#else]»00:00«[/#if]»
Used Time [hh:mm]: «[#if r.UsedTime!="null"]»«${r.UsedTime}»«[#else]»00:00«[/#if]»
Build: «${r.BuildName}»
Version: «${r.VersionName}»
Execution Plan: «${r.ExecDefName}»
Changed By: «${r.ChangedBy.@text}»
Changed On: «${r.ChangedAt.@text}»
«[/#if]»«[#if r.StepName != "null"]»«[#if firstRow]» Test Step Details:«[/#if]»
Step Name: «${r.StepName}»
Description: «${r.StepDescr.@html}»
Status: «${r.StepStatus}»
Result Info: «${r.StepResultInfo.@html}» 
Expected Result: «${r.ExpectedResult.@html}» 
«[/#if]»«[/#list]»