NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

modify UUT report file name

Hello,
 
I use TesStand 3.1 in Batchmode with 4 Testsockets and generate a XML Testreport for every UUT with the serial number in the file name.
I leave the "Enter UUT Serial Number" dialog boxes at the begin empty.
After that i read out the Serial Number of my UUTs at the runtime via CAN and use the "PostUUT-Callback" to modify the "Parameters.UUT.SerialNumber".
Because of that the UUT Serial Number appears in the Report Header.
 
But the report filename is always "Report[NO_UUT_SERIAL_NUM0][date][time].xml".
Is it possible to modify the "UUT Serial Number" in the Report File Name, too?
 
Thanx for your answers! Smiley Happy
Greetz ALIEN
0 Kudos
Message 1 of 5
(3,770 Views)
If you look at the process model Batch.seq and in the Test UUTs -- Test Socket Entry Point, you will find a C/C++ DLL step called Determine Report File Path. This is done before the MainSequence Callback so the report name is created before you have read them and written to Parameters.UUT.SerialNumber. You could put the code that reads them in your own PreUUT callback and not modify the process model or modify the process model and put the Determine Report File Path after the MainSequence callback.
0 Kudos
Message 2 of 5
(3,763 Views)
1.) If i put the code in my own PreUUT callback (in my own sequence file?) where do I get the parameters the "Determine Report File Path"-Steps need (e.g. Locals.ModelData.xxx) ?
 
2.) If i modify the process model, where exactly do i have to move the "Determine Report File Path"-Steps?
 
I would prefer number 1.)
 
 
0 Kudos
Message 3 of 5
(3,753 Views)
We modify the report name to include error count, Model, build, etc. but it requires that the Report be complete at that point (file no longer locked by TestStand). 
 
In order to do this, you'll need to create a Sequence (with no Process Model) to call the test sequence using Subsequence call with the "Run Sequence in a New Execution" selected in the "Specify Module", Multithreading selection ring.
 
There may be other ways to do what you're attempting, but this gives you freedom to rename the file. 
 
Mike
0 Kudos
Message 4 of 5
(3,747 Views)

Why do you want the parameters for the Determine Report File Path? The fact that you are not entering a serial number during the PreUUT Callback is the reason that Determine Report File Path doesn't create a file name with the serial number in it. If you just generate the serial number, as I said, in your own PreUUT Callback, then that will be available when Determine Report File Path is called.

"put the Determine Report File Path after the MainSequence callback". Just put it immediately after.

0 Kudos
Message 5 of 5
(3,742 Views)