03-02-2017 07:15 AM
Hi,
How can I get calling step "start time" in "post step callback"?
I'm trying with: RunState.Caller.Locals.ResultList[Runstate.CallingStep.StepIndex].TS.StartTime
but it is not working. Do I need to change this expression completely or it is just a matter of interfaces in Caller/Locals?
Solved! Go to Solution.
03-02-2017 07:57 AM
Hi Michał,
I'm not completely sure you can access TS.StartTime for the current step in the Post-Step callback, as the resultlist array element hasn't been populated at that point (TS 2014 - Step Execution)...
I think you might have to access it using the SequenceFilePostResultListEntry callback, using the following expression:
Parameters.Result.TS.StartTime
I hope this helps,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
03-02-2017 08:03 AM
The error is expected behavior. The step's result has not yet been transferred to the ResultList. Reference to the step execution help entry:
You are acting on action number 21 while the result of the step is transferred to ResultList in action number 34.
Move your code to the Post ResultList Entry callback (action number 35) and it should work.