It's all about the answers!

Ask a question

RPE - Output filename using template variable?

Glyn Costello (13635) | asked Jan 24 '22, 4:54 p.m.

Is it possible for tell RPE name the output file ([name].doc or [name].docx) using a variable from the document template? Like the module's name or the work item summary or the test case ID?

One answer

permanent link
Subramanya Prasad Pilar (4.6k14) | answered Jan 25 '22, 12:05 a.m.

While configuring output in RPE, you can use an environment variable/system variable, but not template variable. Suppose you have environment variable "opfilename" with value "TestCase_101.docx", providing the "Path" property for Word output as C:\${opfilename} will result in creation of output file C:\TestCase_101.docx.
If you can come up with a script to set environment variable through RPE template, you can use environment variable value in output path.

Since you get the value (of module name or WI summary) only during document generation, you cannot use Macro with parameters or Post-Command (where you should know the value beforehand).

You can go through blog where "Document Break" element is used to dynamically set the file name (to get individual files as deliverables).

Your answer

Register or to post your answer.