01-09-2017 03:49 AM
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?
Solved! Go to Solution.
01-09-2017 03:25 PM
@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?
01-10-2017 01:35 AM
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
01-10-2017 09:08 AM
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,
01-11-2017 02:12 AM
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