From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-03-2019 10:36 AM
I have a PC with TestStand installed that is already being used for in-line testing an generating reports in HTML format.
Now I want to make new tests with new sequences but using the ATML 6.01 format for reports, but without affecting the format of the other tests with HTML reports.
If, in the new sequence, I override the Callback Report Options and set the following, the report comes out completely blank.
Parameters.ReportOptions.Format="xml",
Parameters.ReportOptions.StoreStylesheetAbsolutePath = True,
Parameters.ReportOptions.StylesheetPath = "C:\\Program Files (x86)\\National Instruments\\TestStand 2017\\Components\\Models\\TestStandModels\\ATML\\StyleSheets\\TR6_Horizontal.xsl"
It does work when setting the ATML 6.01 report in "Configure" -> "Result Processing...", but this affects the old tests.
Thanks.
Solved! Go to Solution.
10-04-2019 02:12 AM
GabrielBarbat,
To determine what all properties need to be set in Parameters.ReportOptions, you can do the following:
Based on above method to identify property, apart from updating three properties you have mentioned, I believe you also need to update the following to use ATML 6.01:
Parameters.ReportOptions.ReportStyle = "ATML6"
Parameters.ReportOptions.RelStylesheetPath = "TR6_Horizontal.xsl"
-Shashidhar
10-08-2019 08:14 AM
Hi Shashidhar.
That worked! Thanks!
However, I could fix this issue in a more robust way. First I configured what I needed for the new sequence in Configure >> Result Processing and I run the sequence with this set in the ReportOptions callback:
Parameters.ReportOptions.ReadEx("C:\\TestStand\\ReportOptionsAtml.txt", "ReportOptions", RWOption_NoOptions),
This generates a txt file with all the parameters. I copied this file to the new sequence folder.
Then I replaced the line above with this one:
Parameters.ReportOptions.ReadEx(Left(RunState.SequenceFile.Path, Find(RunState.SequenceFile.Path, "\\", 0, False, True)) + @"\ReportOptionsAtml.txt", "ReportOptions", RWOption_NoOptions),
This makes the sequence load all the settings from the txt file.
Then I could restore the previous settings in Configure >> Result Processing.