06-18-2009 07:26 AM
When including Additional results in my test stand sequence file, i save the complete listing of a text file to this option.
Problem is, in the result file(html) it displayes it without any carriage returns and line feeds...resulting in a very messy display.
Can this be fixed in some way?
Goose
Solved! Go to Solution.
06-18-2009 08:58 AM
Hi,
What TestStand version are you using?
Regards
Ray Farmer
06-18-2009 09:00 AM
06-18-2009 10:46 AM - edited 06-18-2009 10:47 AM
morngoose -
The issue is that the text is displayed as is in the HTML file, so since HTML files ignore \n characters and presume them to be just whitespace, the linefeeds do not appear in the display version of the report. We are aware of this side affect and have not yet decided how to address this within TestStand.
A workaround would be to replace all \n characters or \r\n characters with <br /> by using the SearchAndReplace expression function as shown below. The only issue is that if you wish to log to database or use other report formats (txt), the <br /> will be logged instead of the \n.
SearchAndReplace(Locals.VarWithText, "\n", "<br />", 0, True)
Hope this helps...