Forum Discussion
StevenColon
Alumni
9 years agoThank you for posting to our Community Forum.
I have attached the external groovy class that defines methods to set and get a Global Property.
Here is the code for the Groovy Script TestStep to call the class and methods
globalPropertiesConnector = new GlobalPropertiesConnector()
globalPropertiesConnector.setProperty("Property Name","Property Value") log.info globalPropertiesConnector.getProperty("Property Name")
Please note that you need to set the Script Library field under Preferences>ReadyAPI to the directory that contains this script.
Here is our documentation on script libraries for you to explore: https://support.smartbear.com/readyapi/docs/testing/scripts/library.html
Have a great day!