NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

date and time in every step result

Hi,

I want every step that I execute in my sequence to contain a date and time string.  A way I can see to do this is from this article:

 

https://www.ni.com/en/support/documentation/supplemental/08/teststand-report-generation-and-customiz...

 

Where I can call the Execution.AddExtraResult method, where you point it to an existing property, which will then get included in the result cluster of every step. 

My question is, is there an existing property where the current data and time already exists somewhere in the runstate tree?

 

Thanks

David J

0 Kudos
Message 1 of 3
(4,570 Views)

Hi David,

 

Step.Result.TS.StartTime will give you the start time for a step. The Step.Result.TS container also contains a bunch of other useful information. See link below:

 

https://www.ni.com/docs/en-US/bundle/teststand/page/standard-result-properties.html

 

Regards,

Chris

 

0 Kudos
Message 2 of 3
(4,535 Views)

Actually TS.Starttime is:

 

Time at which the step began executing, specifically the number of seconds since the TestStand Engine initialized.

 

So it just starts over at 0 when you start teststand, it isn't actually the date and time. I may resort to updating a variable I create, with some sort of step callback perhaps.

0 Kudos
Message 3 of 3
(4,503 Views)