Is there a way via RPE to render variables used in RQM Test Scripts in special formatting when outputting as Word?
Accepted answer
We can process XHTML in RPE through java Script as explained in http://rpeactual.com/2013/01/18/processing-rich-text-in-rpe/
But if you want button element or any other form element in Word document (or PDF output), it is not supported. This is the case with latest version of RPE or RRDG as well.
Comments
I haven't applied any special formatting in RQM. I am using Test Data in the script and the variables used in steps come out with special formatting on their own when extracting the data. I have been able to parse the XHTML in the javascript code in RPE to replace the <button ...> tags with some supported formatting, thanks to the article you mentioned (found it in my searches yesterday). Here is an example of the XHTML that is coming back from RQM:
In trying to process XHTML in a script, I am running into another problem with the XHTML returned from RQM. I get a message stating "the reference to entity "artifactURI" must end with the ';' delimiter. The XHTML is:
That means RQM returns malformed XML (something hasn't been escaped properly). You can try after validating the rich text content in the Test script using the "validate content" button on Test Script Step editor.