NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Report

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 ?

0 Kudos
Message 11 of 19
(1,707 Views)

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.

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 12 of 19
(1,688 Views)

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

0 Kudos
Message 13 of 19
(1,672 Views)

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/

Michael Bilyk
Former NI Software Engineer (IT)
0 Kudos
Message 14 of 19
(1,655 Views)

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...

0 Kudos
Message 15 of 19
(1,637 Views)

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.

Michael Keane
National Instruments
0 Kudos
Message 16 of 19
(1,609 Views)

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.

 

 

0 Kudos
Message 17 of 19
(1,599 Views)

Are any of the other macros working such as the ones described in this link?

 

Specifying Report File Paths by Expression

http://zone.ni.com/reference/en-XX/help/370052K-01/tsref/infotopics/specifyreportfilepath_byexpressi...

Michael Keane
National Instruments
0 Kudos
Message 18 of 19
(1,579 Views)
0 Kudos
Message 19 of 19
(1,520 Views)