Modifying Test Socket Index in TestStand Batch ATML Reports

Updated Aug 13, 2020

Reported In

Software

  • TestStand

Operating System

  • Windows

Issue Details

When running sequences with the Batch Process Model, I would like the test socket index in my ATML reports to be 1-indexed, not 0-indexed which is the default. 

This is the default view of the ATML report:


This is what I would like to achieve, test sockets starting in 1:


What should I modify to get that result in my ATML reports?

Solution

You can customize the plugin to adapt it to your requirements. For this specific case, you can modify the test socket index following these steps: 

 
  1. Open the reportgen_atml.seq.
  2. Look for the AddBatchUUTItem sequence.
  3. Between the Encode Test Socket Serial Number step and the Add UUTHref step, add a statement step (TEST in the following picture). ​​​
  4. Put this expression in the statement step you just added: Parameters.TestSocketIndex++. This will increment in 1 the test socket index, so the report will show 1-indexed results. 
By doing these steps, you will have the desired result.