07-31-2012 08:31 AM
Hello,
In my .seq I have lots of subsequences.
In the first subsequence, I ask something in a popup message, the operator can just answered by Yes or No.
If he choose No, I would like finish my sequence without playing others subsequences but I would like also have a end test report
It is possible or not ?
I wanted to call the Process Model sequence to have the popup "Testing terminated for current UUT", but the call sequence function don't permit to call it.
Thank you
07-31-2012 09:25 AM
You can create a custom post action on the messagepopup step that checks which button was hit (using the step property which indicates that) and if the No button was hit the custom post action can either be set to goto cleanup or terminate, whichever you prefer. Goto cleanup ends the sequence in a normal way, but without executing any more of the steps in the main step group. Terminate, is more for an abnormal termination of the sequence and will give the sequence a terminated status (which might be what you want, though I'm not entirely sure).
Hope this helps,
-Doug
08-01-2012 07:18 AM - edited 08-01-2012 07:25 AM
Thanks Doug,
(I apologise, I couldn't answer earlier because of my web connection)
You are wright, I prefer go to cleanup ^^
I tried to do a custom post action in my popup settings but I don't understand
how you can do a if in it !!
To check which button was hit I wrote step.result.buttonhit == 3
and I don't know how set the post custom to go to cleanup.
(I am a recent teststand user)
So I tried something else.
I used a if condition, then the goto function but it doesn't work.
(It is better for me to try with that because if the no button was hit I wanted go to some function
before go to cleanup)
Then I tried to put a statement instead of the goto function. I wrote the expression:
RunState.Sequence.Cleanup
but without mange to do what I want 😞
08-01-2012 08:24 AM
Just out of curiousity:
Isn't the execution entry point "Test UUTs" supplying the requested feature to end the test with the serial number entry dialog?
If not, what are the required differences?
Norbert
08-02-2012 04:22 AM - edited 08-02-2012 04:23 AM
ok,
I found the solution.
I used a if condition with that condition: RunState.Sequence.Main["Mess Pop"].Result.ButHit == X
then at the end of my if condition I used a statement with that expression: RunState.Execution.Terminate().
I don't know if it is the best solution but it works ^^.
Thanks Doug and Norbert
08-02-2012 09:22 AM
I'm not sure why you couldn't get the Post Action to work. It should work fine. Just check the "Use Custom Condition" checkbox, set the expression to your expression checking the button index, and set the "On Condition True" combobox to goto step and set the target for the goto to <Cleanup>.
-Doug
08-02-2012 09:52 AM
So I think I am doing something wrong,
I checked in use custom condition if the button I want activate the cleanup have been hit
If it is true => Goto Step condition on condition true.
I don't think there are something more to do !! 😞
I joined a screenshot of my step settings of my message popup.
Alex
08-02-2012 10:29 AM
That's mostly correct, but get rid of the Evaluate call, it should be like you have it in the commented out part instead. It worked for me in a sequence I just tried it in. Perhaps you are checking for the wrong button index.
I've attached an example TestStand 2010 sequence file which illustrates this is working. If you press the first button the second step is skiped because it goes to cleanup, if you press the second button then it does not.
-Doug
08-03-2012 03:32 AM
I don't understand why because I have exactly the same settings.
But yours work fine, thank you 😉
I gonna to do some search before create a new topic about message popup response ^^
Thanks.
Alex
08-03-2012 09:22 AM
There must be some subtle difference in what you are doing. Try setting a breakpoint and making sure that the button index you are expecting is the one that is actually getting set.
-Doug