Access Properties

Groovy scripts have access to your project information, including properties, settings, and names of all items in the project. You can modify these from script to suit your needs during the test run, and then set them back to default values.

Where to use

There are several ways to run the scripts below:

Get and Set Properties

You can access all properties of ReadyAPI test items (projects, test suites, test cases, and so on) from your scripts in the following way:

Tip

Have a look at the TestPropertyHolder interface for digging into the object model.

Rename Test Items

Renaming test items such as projects, test suites, and test cases is a specific example of a property change because the name of a test item is one of its properties. You can change it using scripts:

Important

Some scripts may get items by their names. If you rename the item, those scripts will fail.

See Also

Publication date: