09-09-2013 11:23 PM
Hi ! Could someone teach me,pls?
1. Query:
How can i get the sequence status of Terminated?
Aim:
I want to Terminate sequence execution while something wrong happened, then i want to aquire the Terminated Staus.
My action:
i add a ActiveX API step into a callbacks file called SequenceFilePostStepFailure , but i can't get the value well
2. Query:
How can i get the number of all steps executed in Cleanup of one sequence?
Aim:
I want to get the number of all steps executed include Setup, Main and Cleanup, after i terminating the sequence
My action:
call a variable from RunState.NumStepsExecuted . but it only the number of steps executed from Setup or Main or Cleanup , not all.
Thank you in advance!
Solved! Go to Solution.
09-10-2013 08:49 AM
Consider the attachment for termination information.
For the steps do you want to know how many are recording results or just the total number of steps for that execution? Also, do you need to know how many steps in subsequences were executed?
Hope this helps,
09-10-2013 08:52 AM
@AllanXu wrote:
Hi ! Could someone teach me,pls?
1. Query:
How can i get the sequence status of Terminated?
Aim:
I want to Terminate sequence execution while something wrong happened, then i want to aquire the Terminated Staus.
My action:
i add a ActiveX API step into a callbacks file called SequenceFilePostStepFailure , but i can't get the value well
2. Query:
How can i get the number of all steps executed in Cleanup of one sequence?
Aim:
I want to get the number of all steps executed include Setup, Main and Cleanup, after i terminating the sequence
My action:
call a variable from RunState.NumStepsExecuted . but it only the number of steps executed from Setup or Main or Cleanup , not all.
Thank you in advance!
1. Execution.GetStates() - look at the termination status. Termination is an execution specific state, not a thread state.
2. You could use a PostStep callback and do the counting yourself (e.g. in a file global or station global variable), however there is a performance cost to poststep callbacks so it depends on whether or not it's worth the performance cost in your particular use case.
Hope this helps,
-Doug
09-11-2013 02:14 AM
Dear Jigg,
Thank you for your attachment, it is very help for me!
For the steps, i want to know total step number executed in only mainsequence and in both mainsequence and subsequence.
By the way, How many are recording results? How can i do it?
thank you in advance!
09-11-2013 02:16 AM
Dear Jigg,
Thank you for your attachment, it is very help for me!
For the steps, i want to know total step number executed in only mainsequence and in both mainsequence and subsequence.
By the way, How many are recording results? How can i do it?
thank you in advance!
09-11-2013 08:43 AM
I implemented Doug's idea into this sequence file. But be careful-
This will take a performance hit as Doug mentions.
Hope this helps,
09-11-2013 10:34 PM
Dear Jigg and Doug,
Thank you ! It is exciting!
But how can i get the number of excuted steps only in main segment or setup segment or cleanup segment in a sequence?
Thank you in advance!
09-12-2013 12:58 PM
Same as in the example but use:
RunState.CallingStep.StepGroup == StepGroup_Main
RunState.CallingStep.StepGroup == StepGroup_Cleanup
RunState.CallingStep.StepGroup == StepGroup_Setup
09-13-2013 02:49 AM
Thank you ! it works!