Thanks richie .
juliobello
You may also find some helpful thread here where it was pointed to a video done by smartbear team which talked about more tips on how to use scripting in the tool
https://community.smartbear.com/t5/SoapUI-Open-Source-Questions/How-to-read-and-use-SoapUI-API-for-non-Dev-people/m-p/108438