10-07-2015 04:45 PM
I need to make dynamically created paths for my reports.
I've tried to add the reportoptions callback, and two statements, one for setting the report path and one for setting generate path to false. Is this the correct way to handle specific report path for each sequence and each UUT.
I have handled this so far via the "configure report" options pane, but it get messy when deploying those settings to different type of teststations. I need to be able to handle this specifically in each sequence i make, to be absolutely sure what happens.
however i don't get any reports. My simple test seq is attached.
Is it possible to add the PASS/FAIL status to the filename. i.e. to change the filename after the seq has either passed or failed ?
10-08-2015 08:29 AM
Hi,
I think the information you are looking for is in this white paper, specifically the part in section 5 about specifying report file paths by expression. You should be able to change your path based off if the UUT passed or failed.
10-12-2015 04:40 PM
Hi WireWeaver
Thanks for the link to the white paper. I've read it but i'm still having some problems.
I've made a simple sequence containing 1 step. I have put in the reportOptions callback and added the expression shown in the first attachment.
At Runtime the parameter "ReportFileSequentialModelExpression" turns RED, and the quotes around the expression are gone !
I get a report file in the correct folder, but it has no name, only extension .xml
what have I done wrong here ?
Is there a document describing all the reportOptions parameters. They are not all selfexplanatory.
Some of them are even string types, but works like enums.... or am I wrong ?
my seq is attached
10-13-2015 09:13 AM
Hey Nikolaj,
I would try "\"$(UUT)_Report.$(FileExtension)\""
You need to insert the quotations into the equation. Check out this article: http://zone.ni.com/reference/en-XX/help/370052J-01/tssuppref/infotopics/special_string_characters/
10-14-2015 02:56 PM
That's right. Now the string is encapsulated in quotes.
However I still only get a report named ".xml" i.e only extenstion, and no name...
10-15-2015 02:03 PM
Since $(UUT) is supposed to replace the macro with the UUT serial number, is there a chance you are executing via Single Pass? Or not entering a serial number name in the UUT pop-up when executing via "Test UUTs?" In both these cases there would be no serial number to replace the macro.
10-16-2015 09:20 AM
unfortunately not.
I'm executing via F5-press (Test UUTs) in the development tool.
The serial number is shown in the report.
It seems as the macro is not interpreted at all.
10-19-2015 05:47 PM
Are any of the other macros working such as the ones described in this link?
Specifying Report File Paths by Expression
11-02-2015 02:27 PM