Operation scripts Pro / Enterprise
Operation scripts allow you to define JavaScript code that runs when an operation is invoked. Among other things, it allows you to create tests and view the results of them.
In contrast to other API clients, Kreya does not provide a way to control the execution flow in operation scripts (e.g. with setNextRequest()
or similar methods).
You can use scripts to do this in Kreya.
Operation scripts can be defined in the Script tab of an operation. The script will run when the operation is sent. Note that the script editor supports autocompletion, simply press Ctrl+Space to bring it up.
As you can see in the screenshot, a global kreya
object is provided.
View all available properties and methods in the API reference.