08-14-2014 06:10 AM
RunState.Caller.Sequence.AsPropertyObject.Comment gives a null string
but RunState.Caller.Sequence.AsPropertyObject.Name does give the right name of the sequence
any idea what teststand is doing here
08-14-2014 06:15 AM
What is that sequence? Are you sure that this sequence has a comment at all???
Norbert
08-14-2014 06:36 AM
Hi Norbert thnks for the fast reply,
MainSeq -> Seq(a)[called as a Sequence call][has comment] -> Seq(a) has steps, -> stepd on error goes to callback(SequenceFilePostStepFailure) here I want to display the comment for the Sequence call.
u r right the Seq I have not commented (in seq Properties) thts why its returning me Null ,,, I will do tht
th e ? is how do I go down the call stack to get the comment for the seqcall, bcos in many instances I have many nested calls.
so I cant set a constant counter either !!
hope I am making myself clear
regards
akshay
08-14-2014 07:37 AM - edited 08-14-2014 07:41 AM
Akshay,
please type all words as written, no abbrevation. Your 'u's and 'r's make the post quite hard to read....
I checked on my machine and it works you expect it work. The lookup "RunState.Caller.Sequence.AsPropertyObject.Comment" reads the comment, if one is present. If there is no comment in the sequence which contains the error-generating step, the result is of course an empty string.
Please note that with your lookup string, you are referring to the sequence which is called by your sequence call step (so SeqA in your case), not to the calling step itself! So adding a comment in the "Call Sequence" step in your MainSequence will not populate the RunState.Caller.Sequence.AsPropertyObject.Comment in your ErrorOccurred-callback!
EDIT: So you read out the comment of SeqA, not the comment of the step calling SeqA.
Norbert
08-14-2014 09:25 AM
hi
Yae now I am reading directly the Comment of the Sequence .
thanks
05-18-2015 03:32 AM
Hello,
I develop an application operator of testsrand in c#, and I etulise the order dowry Net, I want to get the current sequence execution in a listview in c#
I do not arrive introduced the code
RunStat.CallStack in my code
here my code
private void btnStart_Click(object sender, EventArgs e)
{
affichageDeroulementTest.Clear();
// Execution de Programmme
myExecution = myEngine.NewExecution(mySqFile,
"Test UUTs", mySqFile.GetModelSequenceFile(out sDummyString), false, 0, null, null, null);
}
Please
it is somebody can help me has recovers the sequence in the course of execution
thank you;