10-03-2014
04:17 PM
- last edited on
11-04-2024
05:57 PM
by
Content Cleaner
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:
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
10-06-2014
07:06 AM
- last edited on
11-04-2024
05:58 PM
by
Content Cleaner
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
10-07-2014 01:22 PM
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.