NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Batch Sequence to generate two reports per UUT with different names.

Solved!
Go to solution

I have a special situation for the batch model.

 

Each UUT consist of two separate products that must be tested as a single unit.

 

I can run each UUT and generate a test report for each.  - aka. The standard use case works great.

 

However we are keeping records using this method. So I need a separate copy with a different name for each run.

 

The idea behind this is that we might have a running history for each half of the UUT. Since the two halves will probably never meet again.

 

 

I have looked at the BatchModel.seq and read some of the documentation, however I am having a hard time figuring out what is going on.

BatchModel Write UUT

 

I assume the Highlighted Items above are where the UUT Reports are generated. I do not however know the mechanism for giving them the names from the Report Options->Report File Pathname menu or how to change it between those points in time. Also is there any tricks to getting duplicate Report with a diffrent path put into this setup.

 

Any links to relevant information would be useful. Thanks

0 Kudos
Message 1 of 2
(3,182 Views)
Solution
Accepted by topic author Taylorh140

Just copy those two steps and between them and the copies have another step that is just a Statement.  In there you can change the report path by setting parameters.TestSocket.ReportFilePath to the new path.

 

Ideally what you would do is have the client set it by using a callback.  So your code would look like this:

 

Write UUT Report

Write UUT Report (on the fly)

Set Report Path Callback (override in client OR statement step)

Write UUT Report

Write UUT Report (on the fly)

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(3,156 Views)