NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Additional Results option ignores \n

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 4
(3,320 Views)

Hi,

 

What TestStand version are you using?

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,317 Views)
4.1
0 Kudos
Message 3 of 4
(3,315 Views)
Solution
Accepted by topic author morngoose

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...

 

 

Message Edited by Scott Richardson on 06-18-2009 10:47 AM
Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 4
(3,307 Views)