Skip to content

Script Executor

EasyYapi provides a built-in script executor for testing Groovy scripts.

Usage

  1. Open Tools > EasyApi > Script Executor
  2. Write your Groovy script in the editor
  3. Click the run button to execute

Available Tools

The following tools are available in the script executor:

Example

groovy
// Test a field mock rule
def field = it  // context object
if (field.type().name() == "java.lang.String") {
    logger.info("String field: " + field.name())
}

Released under the Apache-2.0 License.