PeterT
18 years agoOccasional Contributor
Using user-defined java (or groovy) class in script
Hi there
So, I'm finally getting a bit of a handle on SoapUI and Groovy. One thing (at the moment) that I'm having trouble with is using a user-defined java class in my Groovy Script.
I've made a very basic class, Test.java, which just returns a string. I've compiled it and put both the .java and .class file in the \soapUI-2.0.2\bin\ext folder and imported the package in my script. When I try to run the script however it cannot resolve the new object that I created (e.g. def t = new Test()).
I know that this should be doable and I'm sure I just haven't put the .class file in the right location or something like that.
Can anyone shed any light on this?
Cheers
Peter
So, I'm finally getting a bit of a handle on SoapUI and Groovy. One thing (at the moment) that I'm having trouble with is using a user-defined java class in my Groovy Script.
I've made a very basic class, Test.java, which just returns a string. I've compiled it and put both the .java and .class file in the \soapUI-2.0.2\bin\ext folder and imported the package in my script. When I try to run the script however it cannot resolve the new object that I created (e.g. def t = new Test()).
I know that this should be doable and I'm sure I just haven't put the .class file in the right location or something like that.
Can anyone shed any light on this?
Cheers
Peter