04-06-2023 01:10 AM
I am using TS 2022 and would like to add to the reports the UUTStatus with "passed" or "failed". To generate I use the callback "ReportOptions" for the BaseName, BatchBaseName etc.
This generates a reportname which looks like this:
Report DUT[07 48 54][06 04 2023].xml
How can I add to this report name the UUTStatus that the report looks like this:
Report DUT[07 48 54][06 04 2023] passed.xml
In the callback "ReportOptions" I can't find any parameter
Thanks
Solved! Go to Solution.
04-12-2023 06:19 AM
Check for Configurations/ Report Options, where File Path can be Configured based on Expression.
04-12-2023 06:44 AM
Do you have an example where the batch report can be changed like you mentioned?
04-18-2023
07:10 PM
- last edited on
10-21-2024
09:04 AM
by
Content Cleaner
@Norick17 wrote:
Do you have an example where the batch report can be changed like you mentioned?
04-19-2023 12:32 AM
Well I know this document but the question is "which parameter in the callback ReportOptions -> Parameters -> ReportOptions" do I need to change and how the expression looks like?
04-19-2023 10:26 AM
04-19-2023 11:19 AM
@Norick17 wrote:
Well I know this document but the question is "which parameter in the callback ReportOptions -> Parameters -> ReportOptions" do I need to change and how the expression looks like?
Depending on which model you are using, the expression that you would need could be one of these:
Parameters.ReportOptions.ReportFileSequentialModelExpression
Parameters.ReportOptions.ReportFileParallelModelExpression
Parameters.ReportOptions.ReportFileBatchModelExpression
In my test it looks like this: "$(ClientFileDir)\\Data\\$(ClientFileName)_Report[$(FileTime)][$(FileDate)]$(Unique).$(FileExtension)"
04-21-2023 04:14 AM
Parameters.ReportOptions.ReportFileSequentialModelExpression
Parameters.ReportOptions.ReportFileParallelModelExpression
Parameters.ReportOptions.ReportFileBatchModelExpression
In my test it looks like this: "$(ClientFileDir)\\Data\\$(ClientFileName)_Report[$(FileTime)][$(FileDate)]$(Unique).$(FileExtension)"
So how would you combine the expression when the BaseName is set as:
Parameters.ReportOptions.BatchBaseName = "Report"
In case of the sequential model can you simply add it to:
Parameters.ReportOptions.ReportFileSequentialModelExpression = StationGlobals.ReportDirectory\\Parameters.ReportOptions.BatchBaseName_$UUTStatus.$(FileExtension)
When doing so, it does not work at all.. Any idea what is wrong with such expression?
04-21-2023 10:40 AM
I think you are misunderstanding TestStand variables.
Parameters.ReportOptions.ReportFileSequentialModelExpression is the name of a variable. This variable is an expression string so it has be formatted as an expression:
If you are using Sequential Model:
Parameters.ReportOptions.ReportFileSequentialModelExpression = "\"" + StationGlobals.ReportDirectory + "\\\\" + Parameters.ReportOptions.BaseName + "_$(UUTStatus).$(FileExtension)" + "\""
If you are using Batch Model:
Parameters.ReportOptions.ReportFileBatchModelExpression = "\"" + StationGlobals.ReportDirectory + "\\\\" + Parameters.ReportOptions.BatchBaseName + "_$(UUTStatus).$(FileExtension)" + "\""
04-24-2023 03:53 AM
now I implemented as you wrote but the report name remains the same. This means only the $(FileExtension) is written while the $(UUTStatus) is still missing. When doing everything within the report GUI it works but unfortunately not when doing in the ReportOptions callback.