10-03-2014 03:25 PM
I am looking for a Visual Studio C# solution to selectively disable creation of the report generation XML file using the TestStand API.
These XML files are useful for active troubleshooting for technicians, but wind up cluttering important directories with useless information most of the time.
I am aware that the XML file creation can be disabled through the TestStand Sequence Editor menu item Configure | Result Processing | Output Name Report | Enabled unchecked option.
This is helpful, but:
1. I have not found a way to check-uncheck this feature at runtime.
2. I do not believe that this would be an effective solution for my instal-less Base Deployment Paradigm.
Any help or ideas would be appreciated!
Solved! Go to Solution.
10-03-2014 05:01 PM - edited 10-03-2014 05:03 PM
Here is a general example of how to programmatically change the result processing configuration file. It is a sequence, but it should be straight forward to call the same TestStand API methods from .net
If you breakpoint in the sequence after loading the file, you can expand Locals.ConfigFile to explore the property structure of the file.
10-06-2014 08:28 AM
Thank you for the quick and concise response James_Grey!
This is useful, complete, and implementable but not exactly what I was hoping for.
I was hoping to be able to enable/disable the XML file creation for the currently executing instance of the engine prior to sequence start.
I would rather not disable reporting through a configuration file that would effectively disable it for all uses of TestStand until it was re-enabled again.
Are my expectations unrealistic?
Does anyone have any idea how creation of the XML file can be enabled/disabled for an active instance of the engine prior to sequence start through the API without altering the file based configuration of TestStand?
I have seen some postings around 2008 that indicate this can be done, but I was unsuccessful implementing those solutions in TestStand 2013.
10-06-2014 10:15 AM - edited 10-06-2014 10:17 AM
You could create a ReportOptions callback sequence, either in your top level client sequence file, or in StationCallbacks.seq. In the callback you can set the value of Parameters.ReportOptions.DisableReportGeneration
10-06-2014 01:32 PM
Thanks for the follow-up and the idea!
Unfortunately I still got an XML file after adding a ReportOptions callback to my sequence with DisableReportGeneration set to true.
10-07-2014 10:39 AM
Here is an example that works for me. If I run it single pass with a report enabled, I don't get a report.
10-07-2014 03:50 PM
Thanks for the clear example. I was not aware that the Parameter had to be set in a step execution in order to make the setting effective.