06-09-2011 04:07 AM
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 !
06-28-2011 02:21 PM
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.
07-01-2011 07:07 AM
Thanks ! It works ..
10-07-2011 04:32 AM
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