NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Change 2nd result location

Solved!
Go to solution

Hi,

 

I have created 2 result in RESULTS PROCESSING (Report_1 & Report_2), one is HTML and one is TEXT. The file location of the report is changed using an expression command depending on what test is run (Parameters.ReportOptions.Directory). I set the Report Options for Report_2 to a specific folder but it puts the report in the same dircetory as Report_1.

Is there a way to put the 2 different reports in 2 different folders?

0 Kudos
Message 1 of 5
(2,753 Views)

@beam7 wrote:

 

The file location of the report is changed using an expression command depending on what test is run (Parameters.ReportOptions.Directory).


Where are you setting this at?  In a callback?

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(2,712 Views)

Hi Jigg,

 

Yes it's in REPORT OPTIONS callback.

Each diiferent test has a String set in FILE GLOBALS (folder path) to change the report directory.

 

Chris

0 Kudos
Message 3 of 5
(2,707 Views)
Solution
Accepted by topic author beam7

If you put a breakpoint in your report options callback you will notice that it gets called twice.  Once for each plugin.  You need to set it differently each time.

 

You can trigger off of this: Evaluate(Parameters.ModelPlugin.Base.DisplayNameExpression)

 

That will tell you the name of the plugin (i.e. Report or Report_2).

 

Let me know if this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 5
(2,700 Views)

Hi Jigg,

Thanks

I didn't realise that the report options got called twice (one for each report).

I can now set each report directory

 

Chris

 

0 Kudos
Message 5 of 5
(2,689 Views)