jmcquaid
13 years agoNew Contributor
Dynamic properties- can't access global script library (gro)
Hi,
I'm using soapui pro 4.5.1.
I need to dynamically expand a property in a soapui request, by entering groovy code directly into the expansion. This works fine when using groovy classes that come with SOAPUI- eg:
${=(int)(Math.random()*1000)}
However, when I use a class that I have defined in an external groovy script, Soapui can't recognize the class.
Yet, according to the soapui website, this should be possible:
"For soapUI Pro users, the global script library is available just as in any other script, allowing you to call into objects/methods defined there for reuse. "
http://www.soapui.org/Scripting-Propert ... nsion.html
Can anyone tell if they have managed to do this?
I'm using soapui pro 4.5.1.
I need to dynamically expand a property in a soapui request, by entering groovy code directly into the expansion. This works fine when using groovy classes that come with SOAPUI- eg:
${=(int)(Math.random()*1000)}
However, when I use a class that I have defined in an external groovy script, Soapui can't recognize the class.
Yet, according to the soapui website, this should be possible:
"For soapUI Pro users, the global script library is available just as in any other script, allowing you to call into objects/methods defined there for reuse. "
http://www.soapui.org/Scripting-Propert ... nsion.html
Can anyone tell if they have managed to do this?