Modifying Test Socket Index in TestStand Batch ATML Reports

Updated Dec 1, 2020

Reported In


  • 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?


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: 

  • Open the reportgen_atml.seq.
  • Look for the AddBatchUUTItem sequence.Between the Encode Test Socket Serial Number step and the Add UUTHref step, add a statement step (TEST in the following picture). ​​​
  • 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. 

Additional Information

This modification will only affect the Batch Report visualization. The UUT Report will still be 0-indexed since that is internal data from the Process Model itself.