11-18-2022 03:16 AM
Hello,
I'm working with TestStand 2021 for almost a year and have to say, modifying reports is a bit tricky. However, I use the option to generate report file by expression, using the provided marcos $(UUTPartNum), $(UUT), $(Unique) and $(Status). Overall it works fine.
Report files are generated like this:
Report_253001072_2148001__Error.html
Report_253001072_2148001_00001_Failed.html
Report_253001072_2148001_00001_Passed.html
Report_253001072_2148001_00002_Failed.html
Report_253001072_2148001_00002_Passed.html
Report_253001072_2148001_00003_Failed.html
Report_253001072_2148001_00003_Passed.html
Report_253001072_2148001_00004_Failed.html
Report_253001072_2148001_00004_Passed.html
Report_253001072_2148001_00005_Passed.html
Now I want, that even the first report has an index that is been created by the $(Unique) macro. It took me some time to find out where the macros being resolved and its not in a sequence of the process models or in the NI_ReportGenerator.seq, but in the report.c file, located in the TestStand's modelsupport2 folder.
I've found the part in the code where it checks if an index already exists and only add it when index is not 0. I could remove the if-clause, so it should always add an index. But modifying this file is not allowed for understandable reasons.
So modifiying the report generation directly, in this specific case, is not possible. It seems the report file name expression is been resolved and stored in the file system within the modelsupport2.dll call at a certain point in the NI_ReportGenerator.seq.
Is there another solution to add an index to a report file?