The Groovy Script test step allows you to execute script code as a part of your test case.
Unlike in other editors, you can also debug your code in the Groovy script editor.
To learn more about the test step, see Groovy Script Test Step.
Below is a list of the default objects that are available in the Groovy Script test step:
||Provides a scripting interface to the test case run.|
Provides a scripting interface to the Script log (to view this log, click Logs in the bottom left corner of the ReadyAPI window and switch to the Script log tab).
You use this for debugging and logging purposes: to post and view data in the log.
||Provides a scripting interface to the test runner object that is executing the current test case and test step. It exposes methods related to test execution and the underlying object model (via the testCase property).|
You can see methods and properties of these objects on the Code Completion list. To invoke it, type the object name and press Ctrl+Space.
Here are the links to examples of some scripts that can be run as part of the Groovy Script test step: