NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Create report with filtered teststeps

Hello,
i am using TS3.5 and want to create a report with only selected teststeps included.
For this i created in my custom teststeos a container called "Config" and inside this container a
bool-parameter called "ShowIt".
Then i opended Teststand -> Configure -> Report-Options and set
"Result Filtering Expression" to "Config.AddIt == True"

When i run then the sequence i get a popup after finishing which says:
ActiveX Error
sCode = 0xffffbc66
Description: Unknown variable or property name "Config"
Error accessing item "Config".

But when i copy the parameter "AddIt" into Result.AddIt and change the
"Result Filtering Expression" to "Result.AddIt == True" then it works!

Why cant i use a custom container for this filtering?
The standard-teststand models stops then with Error in the TestReportCallback at teststep "Get Report Body (DLL)"

Thanks for your help.
0 Kudos
Message 1 of 4
(3,181 Views)
Have you set the flag of the step property to Include In Report?  This might be it.
0 Kudos
Message 2 of 4
(3,171 Views)
Yes, this is enabled.
I attached the testsequence and a screenshot of the report-options.
In the sequence i copied the default "passfail-Test" and added there a container "Config" with a bool-variable "AddIt"
This new steptyp is then called twice in the mainsequence where the first call is AddIt == False and trhe second call AddIt ==True.
Then i changed the report-options as you can see in the attached screenshot.
But then i get the error-message.
What am i doing wrong here?
Download All
0 Kudos
Message 3 of 4
(3,165 Views)
You will need to make sure that property gets added to the ResultList.  The easiest way to do this is to call the method Execution.AddExtraResult("Step.Config", "Step.Config") in your process model.

Allen P.
NI
0 Kudos
Message 4 of 4
(3,154 Views)