10-02-2008 09:18 PM
Can I monitor UUT loop index in WatchExpression while running my sequence?
Simply put, I want to see how many UUTs I already did.
Thank you,
fomine
Solved! Go to Solution.
10-03-2008 10:47 AM
hi,
have you try this expression "RunState.Root.Locals.UUT.UUTLoopIndex" ?
a2
10-03-2008 04:50 PM
Hello a2,
Thanks a lot!
That string was exactly what I was looking for!
Please tell me, how should I know about it? It is not listed under RunState.Root in functions. LIkely, there's a bunch of parameters that I may use (# of UUts passed/failed, for example!)
Thanks a lot once again!
fomine
10-06-2008 09:38 AM
Hello fomine,
"runstate.root" is a reference of ProcessModel. With this reference, it is possible to access all variables of ProcessModel (Locals, Parameters, FileGlobal, ...).
To know these variables, open your ProcessModel.
To have a counter of UUts passed or failed, I think it is necessary to modify the ProcessModel.
For information, steps to add your counter :
- add a local variable "PassedCounter" in the sequence "Test UUTs" in the ProcessModel ("SequentialModel.seq" by default -> create a copy)
- incremente this variable after each iteration if test is passed :
- add an "Statements" step after the step "PostUUT Callback"
- add this precondition : "RunState.Sequence.Main["MainSequence Callback"].Result.Status=="Passed"
- in the expression field, incremente your new local variable (Locals.PassedCounter++)
you can see your counter like "UUTLoopIndex", with the expression "Runstate.Root.Locals.PassedCounter"
a2
10-08-2008 02:37 PM
Hi a2,
Thanks a lot for your answers, very well explained!
fomine