Skip to end of metadata
Go to start of metadata

When developing lengthy Test Cases, it's useful to be able to stop execution to examine the state of the browser.  True, you could use the debugger, but many times it's overkill and I don't actually want to examine the test code.

For me, this little method does exactly what I want -- it kills the test at the exact point I need and allows me to do something in the browser:

import com.kms.katalon.core.exception.StepErrorException as StepErrorException
...

public class mytools {

  static void FORCESTOP() {
    throw new StepErrorException("FORCEDSTOP")
  }
 ...
}

That method lives a keyword tools class which I import "everywhere".  Then, in a test case script I do this:

 

FORCESTOP()


Credit to Russ Thomas


  • No labels