Forum Discussion
JMcKinley
18 years agoContributor
the public key words did not help... but with seeing the compile error, I did find the problem (I did not realize you could see it in the "soapui log" window until you suggested to look there)...
Here is the corrected version:
package soapui.Test
class TestRequest
{
TestRequest() {
}
def getTest() {
return 123657;
}
}
I did not have a () after my constructor. I could have sworn I saw some documentation somewhere (either on this site or somewhere) that showed the constructor (for Groovy code) without parentheses.
Now, I can access the method and print out the return value in my project.
Seeing the compile error helped point the direction to the problem.
Thanks for the help!
Jim
Here is the corrected version:
package soapui.Test
class TestRequest
{
TestRequest() {
}
def getTest() {
return 123657;
}
}
I did not have a () after my constructor. I could have sworn I saw some documentation somewhere (either on this site or somewhere) that showed the constructor (for Groovy code) without parentheses.
Now, I can access the method and print out the return value in my project.
Seeing the compile error helped point the direction to the problem.
Thanks for the help!
Jim