[Issue #661] Folder or Test Suite execution stops showing "Empty Stack. Can't find monitor target with id..." Error if a macro contains "Run" command inside

Steps to Reproduce:

  1. Create a new folder.
  2. Create 4 Macros inside the new folder. Let’s name them - Macro_1, Macro_2, Macro_3, Macro_4. Insert some random commands in them.
  3. In the “Macro_1”, insert a “Run” command that targets the “Macro_3”. Absolute or Relative path does not matter.
  4. Do any of the following i) Play the whole folder as test suite ii) Create a classic test suite, add all four macros and run the suite iii) Right click “Macro_1” and click “Testsuite: Play from here”.

“Macro_1” will play → it will call and run “Macro_3” as the sub-routine → “Macro_1” will successfully finish → Error will be thrown right after starting “Macro_2” showing “Empty Stack. Can’t find monitor target with id…” stopping the whole folder/test suite execution.

Note: The called macro’s (subroutine) position in the same folder or another folder doesn’t matter. Operation will halt after playing the Host macro that contains the “Run” command inside.

Tested Environment:

Browser: Chrome
Kantu: 5.3.7

Thanks for the very good test case. => I confirmed the issue (logged as #661) and we will try to fix it asap.

Issue fixed with V5.3.17