Skip to content

Commit

Permalink
Fix Step StopBehavior to exit script at end of step (#317)
Browse files Browse the repository at this point in the history
* should be easy fix

* exits completely at step level

* return works

---------

Co-authored-by: zkofiro <[email protected]>
  • Loading branch information
Zakaria-Kofiro and zkofiro authored Apr 4, 2024
1 parent 710dfe8 commit 749f9a6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ private void runTestGroup(List<HDScript> scripts, HDScriptGroup parent)
}
try {
runScriptSteps(hdScriptUseCase);
// If command is stop and stop behavior is end of step, exit the loop.
if (shouldStop(StopBehavior.END_OF_STEP)) {
return;
}
} catch (GotoScriptException e) {
i = 0;
gotoGroup = e.getGotoTarget();
Expand Down

0 comments on commit 749f9a6

Please sign in to comment.