NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Additional results doesn't work with multi-line string dat

I observed an erratic behavior with "Additional Results" in TestStand 2010. The problem statement is as follows:

 

1. I have a variable "Locals.FirstName"

2. I have another variable "Locals.LastName"

3. Concatenate these two strings with a line feed or a new line character (Locals.FirstName+"\n"+Locals.LastName) and display it in a XML report.

 

Approach:

1. Using "Statement Expression" I concatenate two strings and print the result using "Additional Results"

2. For verification I display it using "Message Popup" step type. The formatting is as desired in "Message Popup". However, the new line characters appear as "Spaces" in XML report.

 

Tracing Of this Erratic Behavior:

1. I passed the concatenated string to LabVIEW VI and passed it to "Step.Result.ReportText" variable to log it in XML report. The same string which didn't appeared properly using “Additional Results"of "Statement Expression” step now appears proper in XML report.

 

I have attached the sequence file for reference. Ensure that Report option is set to XML before executing this sequence.

 

Can anyone justify this behavior and suggest the correct approach??

 

Thanks !

0 Kudos
Message 1 of 4
(4,119 Views)

Amit -

 

Here is a modified version of the TestStand 2010 Horizontal.xsl style sheet that corrects the issue you have mentioned. Note that leading and trailing "\n" characters will still be stripped out, and all "\r" characters will be stripped out.

 

Hope this helps.

Manooch H.
National Instruments
Message 2 of 4
(3,988 Views)

Thanks ! It works ..

0 Kudos
Message 3 of 4
(3,956 Views)

Hello Manooch,

 

I would appreciate if you can help me in modifying "expand.xsl" file as well. The changes you did in "horizontal.xsl" (removal of few lines) doesn't appear in "expand.xsl" & I'm a rookie in XML development.

 

Thanks

Amit

0 Kudos
Message 4 of 4
(3,859 Views)