Groovy Script Test Step Editor

Applies to ReadyAPI 3.5, last modified on December 29, 2020


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.

Groovy Script test step editor

Click the image to enlarge it.

To learn more about the test step, see Groovy Script Test Step.

Script objects

Below is a list of the default objects that are available in the Groovy Script test step:

Object Description
context 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.

testRunner 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:

See Also

Script Editors
Groovy Script Test Step

Highlight search results