sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21557
Re: [Question #236945]: How to terminate a unittest on failure and move to following unittests
Question #236945 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/236945
Status: Open => Answered
RaiMan proposed the following answer:
The challenge in this case is the need to implement some global state
handling:
somehow simplified:
state = running: both machines should proceed
state = shouldStop: one machine has reached a point, where the other machine should stop running the current test case.
state = stopped: both machines are idle and might start the next test case
state = shouldRun: one machine has started a test and the other should start it too
both machines have to constantly check this global state and react accordingly.
The implementation is much easier, if one machine acts as master and hence controls the state handler according to shouldRun.
There is no way to "inject" an assert false, if there are no preps for
that in the above sense.
... and the smoothest implementation is the version 2 above, where the
testcases are run as threads in the state handlers on both machines,
which communicate independently from the workload.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.