Additional Results option ignores \n

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.

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
National Instruments

Similar Messages

  • Additional Results not present in Properties in TestStand 4.0

    Hi,
    I wish to use a multimeter to record current values in my TestStand 4.0
    test sequence. I was using TestStand 4.1 and the results were recording
    fine to my report. I had checked the Additional Results option, but this
    option is not present in 4.0. Where can i find this option to record the
    value into my report?
    I had been using TestStand 4.1 but have had to go back to TestStand 4.0
    because some modules i wish to use are not supported in TestStand 4.1 yet.
    Thanks
    Solved!
    Go to Solution.

    If you use numeric limit steps to evaluate the measured value, the result will be part of the report except you deselected "include measurements" in the report options.
    This is anyways the recommended way to include measurement values in your report.
    You can add additional results by using the "ReportText" variable in the Step.Result-Container. Just use a postexpression to convert your measurement value to a string and set this to the ReportText (something like: "Result.ReportText = str(locals.mymeasurement)").
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • 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 !
    Attachments:
    Erratic Behavior Of Additional Results.seq ‏8 KB
    Tracing Of Erratic Behavior.vi ‏9 KB

    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
    Attachments:
    horizontal_modified.zip ‏22 KB

  • Additional Results - ASCII Report Format

    Hello All,
    When using "Additional Results", and having an ASCII Report Format, how do you increase the "Name" beyond 26 characters?
    Its like there are 2 invisible columns, to accomodate for "Name" and "Value to log", but you can only use a 26 character Name, before you enter the second column.
    Any ideas?

    Hey kalachnik,
    This can be done, but it might take a bit of modification.
    The first thing I did was add the ReportOptions callback to my sequence file. In that callback, I added a Statement step with the following expression: Parameters.ReportOptions.LabelSize = 60    . This allows names up to 60 characters long in the results. 
    However, the downside to this is that the Value to Log of the additional results will no longer line up with the result of normal steps, such as an Action step. Since this makes the report difficult to understand, we should probably increase the space between the name and value columns for all report results. That will require modifying the report generation sequence.
    1) Go to Configure > Result Processing, click the Options button for the report, and on the Contents tab, set the report generator to Sequence instead of DLL. This allows us to make changes in a TestStand sequence file to affect the report generation.
    2) Navigate to <TestStand>\Components\Models\TestStand Models and open reportgen_txt.seq. This is the sequence file which controls ASCII report generation. Find the sequence called PutOneResultInReport_lmpl. This sequence puts a single result line into the report.
    3) One of the steps is "Get Gap String", and it has a statement of the following form: Locals.GapBetweenNameAndResult = Locals.StepNameLength >= 30 ? " " : Left("                               ", 30 - Locals.StepNameLength). This statement indents the result by 31 spaces if the step name is longer than 30 characters, or by 30-(length of step name) if the name is shorter than 30 characters. We need to change those thresholds.
    4) Set the expression to the following: Locals.GapBetweenNameAndResult = Locals.StepNameLength >= 60 ? " " : Left("                                                             ", 60 - Locals.StepNameLength).  I changed both instances of "30" to "60", and changed the blank string from 31 spaces to 61. This will cause the results to be indented further, which makes the Name column wider on the report.
    This should do it, and of course you can tweak the actual values for your specific needs. You might also consider using one of the other report formats, such as XML or ATML. These formats are a bit more dynamic and can more easily handle longer names. I hope it helps, and let us know if you have any more questions about it!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • I changed my password and it updated on all of my devices except my ipad... Now I get this error message from icloud saying icloud backup cannot access my account... There are two options: ignore or settings

    Error message: icloud unable to access my account... I changed my password, this is the message on my ipad. gives me two options: ignore/settings... ipad not responding to either... ?

    Try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Additional payment options for Family Sharing I wish....

    I was not aware that each purchase would be billed to my credit card regardless of my iTunes balance. I knew I would be paying for all purchases, but not being able to use my account balance to pay it is extremely annoying. Prior to Family Sharing being available all their devices were under my id. So any gift cards they received were redeemed under my account. Now I have their money and can't use it to buy their things.
    My mistake for not following every link on the Family Sharing info page, but I read that I would be charged for purchases. I thought it would be the same way as any purchase I made (balance, then credit card).....
    I wish:
    There should be an option for:
    1) those who have a credit card be able to use it if they aren't on the "ask to buy" restriction. This includes both adults and other teens.
    2) as the Organizer--give me a choice on how I want to pay for the purchases. If i want to use my own balance, I should be allowed to.
    3) if this is how it's going to stay, then I should have the option as the organizer to transfer my balance to individual family sharing members as I see fit. Or allow me to 'gift' them the balance. Right now you can't use iTunes balance to buy a 'gift'.

    tminutes wrote:
    I understand that now...but the their gift cards had been redeemed to my account prior to having family sharing. So basically, for now, I will have to decline any of their requests and then purchase them through my own. They can then download them on their device.  I just wish there were alternatives...Thank you.
    Tminutes,
    Based on posts in this Forum, other Family Organizers have found themselves in that same dilemma.  If you would like to make the "additional payment options" suggestion directly to Apple, you can do so at the iTunes Feedback page:
    http://www.apple.com/feedback/itunesapp.html

  • Additional Results Custom Step using Variables in Name and Value to Log expressions?

    I am trying to create a Custom Step Type for logging additional results - requiring a single Name and Value data pair included in the step.
    I want to pass the name and value data in using two specific variables.
    This functionality can of course be explicitly coded on a test step without problem, but I can't find a way to create a custom test step which inserts such a step i.e. automatically inserting the correct variable names into Name and Value to Log fields.
    Any ideas how to accomplish this? I don't want the custom step users to have to type in the variable names every time they use it.
    I am using TestStand 4.1.1
    Message Edited by CIM1 on 04-20-2009 07:26 AM

    Hi CIM1,
    There are a few ways of doing this.
    The simplest one would be to configure the expression in the Pre-Expression or Post-Expression (depending on whether you would like the Step Type to use the value in the variables or write the value to the variables) and then from here you can lock away the expressions from being edited. The caveat with this method is that you are obviously restricing the Pre/Post-Expressions for the step type. 
    Another Method would be to code some code modules to Write to/Read from the Variables and then calling these in the Steps Pre-Step SubStep or Post-Step Substep. The advantages of this method would be that you can search for the Variable, and if the variable is not present, you could create it before writing to it.
    Hope this Helps.
    Best Regards,
    Steve H 

  • Adding additional font option

    Hi,
    How to add additional font option in the Column properties.
    I have to add new font type to the list, How to do this?
    Please advice.
    Thanks,
    Vino

    Those are available default font types present in OBIEE.
    For any additional formatting options you can use CSS style sheets and classes where you can specify your own Custom styles
    This blog has a good explanation of the available options
    http://obiee101.blogspot.com/2008/09/obiee-custom-css-style-class.html
    hope it helps
    Prash

  • During initial setup, I deleted the additional colored options in the Calender application. How do I get those colored options back? Thank you!!

    During initial setup, I deleted the additional colored options in the Calender application. How do I get those colored options back? Thank you!!

    Sounds like you have the print dialog minimised, as shown.
    If you click the triangle next to the printer name, this will expand the print dialog and from this view you can see all the menu options as mentioned in the guide.

  • How insert additional results from "SequenceFilePostStep" callback on the report

    I'm trying to insert a value processed on "SequenceFilePostStep" callback on the report. But every try I did, using additional results, didn't work well.
    Anyone knows how to include the value processed after every step on the report?
    Thanks

    Please try the following :
    In the "SequenceFilePostStep" copy the processed data to a stationglobal or fileglobal variable.
    In the calling step properties add this variable in the additional result (properties-->additional results).
    I checked with TS 13 it reports properly.
    Since the "SequenceFilePostStep" is an engine callback probably it may not support updating the report .
    Hope this helps.
    Ravi

  • Additional Results

    I was following the following tutorial:
    "Logging Additional Results tp TestStand Database"
    http://www.ni.com/tutorial/14595/en/
    When I got to Method 1, Step 3, I tried to enter a Custom Name for the data. The Name I enter always remains red. Even when I have a valid variable in the "Value to Log" Column. When I click on the validation I get an evaluation warning. 
    John O'C
    Staff Test Systems Engineer
    Woodward, Inc.
    Skokie, Illinois, USA
    "Life is not a journey to the grave with the intention of arriving safely
    in a pretty and well preserved body, but rather to skid in broadside,
    thoroughly used up, totally worn out, and loudly proclaiming...
    Wow...What a Ride!"
    Solved!
    Go to Solution.

    Hey John,
    Try putting your name in quotes. This will cause TestStand to interpret it as a string rather than a variable name.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Include array of data in additional results

    It seems not to be possible to use array of data in additional results? Anyone who knows if this correct?
    Regards
    Vagn

    Hi,
    I tried your example, the first step I am seeing the extra result and when I add some values to your local I see them as well.
    The second step doesn't because you haven't specified anything to report.
    Regards
    Ray
    Regards
    Ray Farmer
    Attachments:
    Additional Results test.seq ‏6 KB
    Additional Results test_Report[11 58 17][28 01 2009].zip ‏3 KB

  • My iPad screen is totally frozen with a message box asking me to go to photo stream settings but when either option (ignore or settings) is selected nothing happens. I can't turn off the device either because the screen won't respond. Help please

    My iPad screen is totally frozen with a message box asking me to go to photo stream settings but when either option (ignore or settings) is selected nothing happens. I can't turn off the device either because the screen won't respond. Help please

    Try a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • Additional Results Condition Not Working Correctly For Parameters

    TestStand 2014
    Trying to log a parameter only if the step status is "Failed" won't log the parameter when the step actually fails.  However, variables with the same condition will log just fine.
    The attached sequence demonstrates this.  Basically I have a subsequence that returns a random number and a string as parameters.  I use the random number to evaluate against my limits for the test call.  I want to log the string parameter only if the step fails.  So I set it as an additional result and set the condition to
    Step.Result.Status == "Failed"
    The data never shows on the report.
    But when I put an explicit additional result with the same local variable and put the exact same condition it shows on the report when the step fails.
    I'm baffled as to why parameters won't log with this condition but explicit additional results work just fine with the same condition.
    Any thoughts?
    Thanks,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Solved!
    Go to Solution.
    Attachments:
    ParameterWontLog.seq ‏7 KB

    The condition for the parameter's additional result is evaluted before the sequence call's status is set to failed. The 'out' parameter additional results are probably being evaluated right after the code module call, so if the the step's status isn't changed by the code module call, then it will still be "Running".
    I can see how it would be nice if it worked the way you are asking, but keep in mind for in/out parameters it's typically the same expression/variable in both the 'in' and 'out' additional result, so the time at which the result is logged is important. It has to be done before the code module call for 'in' parameters and after the code module call for 'out' parameters in order to accurately reflect the state of the variables at those points in time. I think the intent is that the additional result for parameters should reflect the state of the variables at the point in time immediately right before the call for 'in' parameters and immediately after the call for 'out' parameters. Thus if you want to conditionally log a value based on the status (where the status is not changed directly by the code module), then using a regular additional result like you discovered is probably the best way to go.
    Perhaps for out parameters we could delay logging until the very end, but that might result in a change in behavior if the variable state changes again before that. If you would like for us to consider that or have another idea for how to handle this better please let us know or perhaps post something to the Idea Exchange.
    Another possibility is that we could temporarily log the results before and after the code module call, but then not evaluate the condition until the very end and throw out the logged result if the condition is false. That might still cause a change in behavior though if the "Value to Log" expressions have side-effects.
    Hope this helps clarify things.
    -Doug

  • "Odd Only" and "Even Only" print options ignored

    The "Odd Only" and "Even Only" print options in the Paper Handling paper handling pane of the print dialog are ignored. Running 10.5.8.
    I've tried several different printers, and several apps, including basic things like Text Edit. I've found some archived threads mentioning a similar problem in Leopard, but no resolution, or any real diagnosis/acknowledgement of the problem, or recent news.
    Some applications (e.g. MS Word) have their own odd/even only option, but not all.
    Any info?

    I tried a number of apps, including Apple apps: TextEdit, Preview, in addition to MS Word and other apps.
    Printers: "Open PDF in Preview", plus both Epson and Gutenprint drivers for Epson R220.
    All gave the same results - the option is ignored.
    Are you using the "Odd Only" and "Even Only" print options in the Paper Handling pane (present for all applications), and not the option to print odd or even pages only provided by some apps (e.g. Word)?

Maybe you are looking for

  • UNABLE TO LOAD

    I attempt to run Integration Repository and get the following error when starting Java Web start...the following is from Java Web start log: (run on windows xp/ IE 7) An error occurred while launching/running the application. Title: Integration Build

  • BP merge functionality in CRM 2007 Web UI - Buswu02 objects

    hello champs, Could any help me out to resolve the below issue: I have a issue with BP Account merge functionality in crm 2007, I have made the config change to create the cleansing case, create task, triggered the bupa_realign to merge the duplicate

  • WiFi setting Help

    Hi there i was reading one of your post ( below )  in the forum and wondered if you can help me , how and where can i find this ?   ensure the wireless on the hub is set to wireless n 40mhz and use encryption aes then redo the wifi analyzer  ?  p.s N

  • How to convert date object format to new?

    Hi, I have data object and I want to convert it to this format. DD MMM YYYY eg: 23 MAR 2003 I am looking for exact line of code please. Thanks, Kavans.

  • Match is crashing my music.app

    when i download a song on my iPad 2 using the cloud icon and the circle appears it gets stuck in the middle of it and doesnt finish the "blue progress bar" and when i click that icon again its crashing my music.app. when i open the music app again, t