07-28-2016 07:38 AM - last edited on 11-01-2024 04:30 PM by Content Cleaner
Hi,
I'm preparing custom result processing plugin in TestStand. According to TS help I can use Base.OptionsDescriptionExpression to set Options column in Result Processing window. In this column user can see current settings summary. I want to display report directory path in it, just like in the Simple Text Report example. Unfortunately I'm not able to do this...
I'm using FileGlobals.ModelPluginComponentDescription.Default.InitializationExpression to set default report path, in plugin specific options, using the following expression:
#NoValidation, ModelPlugin.PluginSpecific.Options.ReportOptions.Directory = RunState.Engine.GetTestStandPath(TestStandPath_Public) + "\\Reports"
Next I changed FileGlobals.ModelPluginComponentDescription.Default.Base.OptionsDescriptionExpression into #NoValidation, ModelPlugin.PluginSpecific.Options.ReportOptions.Directory which should contains default report path evaluated in InitializationExpression, and this Directory should be displayed in Options column in Result Processing window.
I do not know what I am missing, because it is not working. When I'm using breakpoint in Model Plugin - Configure Standard Options to see the Parameters.ModelPlugin.Base.OptionsDescriptionExpression it displays:
#NoValidation, // disable validation because top-level ModelPlugin property exists only at runtime
"<replace the value of FileGlobals.ModelPluginComponentDescription.Default.Base.OptionsDescriptionExpression with a string expression which describes the current options, or with an empty string if your model plugin has no options>"
So it looks like my Default.Base is not copied into Parameters.ModelPlugin.Base 😞
So how to display current Options (at least report path) in Result Processing window? Please help 🙂
Solved! Go to Solution.
07-28-2016 11:17 AM
OK I figure out what is going on. FileGlobals.ModelPluginComponentDescription.InitializationExpression is evaluated when I add new instance of plugin using Result Processing -> Insert New. Then each time Result Processing window is shown Parameters.ModelPlugin.Base.OptionsDescriptionExpression is evaluated to update Options column.