Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

How to display current Options in Result Processing window

$
0
0

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 Smiley Sad

 

So how to display current Options (at least report path) in Result Processing window? Please help Smiley Happy


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>