04-06-2023 04:58 AM
I simply would like to add to the report name the UUTStatus like "passed" or "failed". I was able to set in the callback ReportOptions the reportpath but unfortunately I can't find the
way to add to the basename the UUTStatus.
My reportname looks like this: Report DUT[11 49 12][06 04 2023].xml
And I would like to get this: Report DUT[11 49 12][06 04 2023] passed.xml
How can I do that?
Thanks
Solved! Go to Solution.
04-09-2023 11:51 AM
Hi,
I tried this method and was able to generate html file in the way you wanted.You can try it for the XML also in the same way.
This is what i tried for 2021 32 bit TS:
Open C:\Program Files (x86)\National Instruments\TestStand 2021\Components\Models\ModelPlugins\NI_ReportGenerator.seq
Go to "Model Plugin - UUT Done" sub sequence
Add a statement as below to modify the report path :
" Locals.tempStr= SearchAndReplace(Locals.ReportPath,".html",Parameters.UUTStatus+".html",0),
Locals.ReportPath=Locals.tempStr"
You need to modify the locals.report path to meet your requirements.
The UUT status will be parameters.UUTstatus.
The above code changes the path from :
Sequence File 1_Report[22 14 28][09-04-2023].html
to
Sequence File 1_Report[22 14 28][09-04-2023]Passed.html
Do try this.
Ravi
04-11-2023 02:07 AM
Hello Ravi
your solution works! Thanks for your reply...
One more question about it: Where can I add the TestSocket number? Do I need to add it in the ReportOptions callback or...? Unfortunately I can not find it.
Thanks
04-11-2023 02:34 AM
Hi,
I did not get your requirement.Can you share more details.
You can always add additional data to a report by using the additional results step type.In this step type you can choose the variable you want to add.You can add this in your main sequence itself.
If you meant the currently running thread in a mutli socket/parallel testing then you add runstate.TestSockets.myindex
Ravi
04-11-2023 03:11 AM
Hello
I think I found the solution for the TestSocket number:
In the callback ReportOptions you can modify the parameter Parameters.ReportOptions.UseSequenceFileNameAsPrefix = True
in order to add the TestSocket number to the report.
Thanks
04-11-2023 03:23 AM
The only thing I have to mention about your solution is, that on the created .xml report the link for the UUT Serial number in the batch report are not working anymore. This is because you add manually the "UUTStatus" to the report and therefore the links inside the report are broken because of the wrong path name.
04-12-2023 12:40 AM
Hello
when I use your solution for .xml and .pdf reports, I can change the report path and add the UUTStatus but then the "old" report is also stored.
"report xyz Passed.xml"
"report xyz.xml"
Is there a way to delete the "old" report?