How to Include Execution Time of Each Step in TestStand Report?

Updated Mar 12, 2025

Environment

Software

  • TestStand

Execution time is a crucial piece of information in a report. Knowing the execution time for each test performed helps identify which steps can be further improved to achieve maximum productivity. It also helps determine if a step misbehaved and requires modification.

This article will focus on how to include the execution time for each step in the TestStand report.

  1. Launch TestStand.
  2. Select the step(s) for which you want to log the execution time.
    • Use <Ctrl-A> to select all steps.
    • To select a range of consecutive steps, click the first step in the section you want to select to highlight it, hold down <Shift>, and click the last step.
    • Use <Ctrl-Click> to select multiple steps individually.
  3. Go to Step Settings >> Properties >> Additional Results.
  4. Click Add Custom Result

 

 

  1. After clicking Add Custom Result, a new row will appear in the Additional Results section. Insert a name for the additional result. For this demonstration, the string “Execution Time” will be used as the name of the additional result. It should look like the image below:

 

 

  1. Insert the following TestStand API expression as the value for Value to Log:  
    #NoValidation(Step.LastStepResult.TS.TotalTime)

NOTE: The #NoValidation directive prevents the expression from being validated at edit time. This is useful in scenarios where the expression might not be valid until runtime, as is the case here. 

At this point, your sequence file should look like below: 


 

On upcoming report generation, the execution time for each step will be included in the report just like the following illustration: