Class InteractiveConsole

java.lang.Object
org.jenkinsci.test.acceptance.utils.groovy.InteractiveConsole

public class InteractiveConsole extends Object
Interactive Groovy console that's useful while developing a test.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • InteractiveConsole

      public InteractiveConsole()
  • Method Details

    • execute

      public static void execute(Object caller, Object... args)
      Call this method at the point you want to drop into the Groovy console for exploration.
      Parameters:
      caller - Methods/fields of this object becomes accessible to the script as if they are built-in. Usually you want to pass in the instance of the test class.
      args - [name, value, name, value, ... ] pair array that defines additional variables accessible from the script. Useful to expose local variables in scope