Access ReadyAPI Preferences

Applies to ReadyAPI 3.5, last modified on January 19, 2021

You can modify ReadyAPI preferences from your groovy scripts. You can find the full list of available settings in ReadyAPI javadoc.

Where To Use

You can use this script anywhere in ReadyAPI.


The following script uses the SoapUI.settings property to set the keystore, and then posts the updated value to the log:


// Import the packages required to work with ReadyAPI preferences.
import com.eviware.soapui.settings.SSLSettings
import com.eviware.soapui.SoapUI

// Set the "KeyStore" option.
SoapUI.settings.setString( SSLSettings.KEYSTORE, "C:\\Work\\" )

// Get the value of the KeyStore option and print it in the log.
def keystore =    SoapUI.settings.getString( SSLSettings.KEYSTORE, "value to return if this setting is empty" )

See Also

Groovy Scripts

Highlight search results