tofurkey
15 years agoNew Contributor
beginner issues help wanted
Hello everyone,
Really awesome free product you have here and I see great flexibility in using testscript to control and do fancy stuff with your web services. I have been testing both the pro version and the community one. I am sticking to the free one so far but the pro has a nice interface that makes things easier.
I have a few start-up issues:
1) I am unfamiliar with the dot notation of the SoapUI documentation
- I see the following line often "testRunner.testCase.testSuite.project" and I try to understand how this dot notation works in scripting with Groovy. Where do I find the docs for the properties/methods for these testRunner, testCase, testSuite and etc. Is this part of groovy's api documentation or is this entirely SoapUI's? I've been checking api docs for both groovy and soapUI, but I fail to find any relevant information
2) In my wildest dream I would like to do some simple testing for a REST api.
- I got the service, method and resource defined
- I created a testsuite, added the request to a testcase
- now I want to write a simple script to create a unique name for my REST api parameter
- put unique string in a property; transfer this property to the REST api request as a parameter - (this is where I am struggling; I don't know how to access the return values from the REST api script-wise. In the automated scripting feature (pro) that you have, the argument provided there is named messageExchange something and everything works great there; but it's only available when using the cool automated scripting feature)
- retrieve the return output that's in JSON and parse it
- do some simple assertion on the JSON return output
- do some logging on fail/success
- profit?
You guys rock with this great tool. I would love to hear from you soon and thank you for your time,
tofurkey
Really awesome free product you have here and I see great flexibility in using testscript to control and do fancy stuff with your web services. I have been testing both the pro version and the community one. I am sticking to the free one so far but the pro has a nice interface that makes things easier.
I have a few start-up issues:
1) I am unfamiliar with the dot notation of the SoapUI documentation
- I see the following line often "testRunner.testCase.testSuite.project" and I try to understand how this dot notation works in scripting with Groovy. Where do I find the docs for the properties/methods for these testRunner, testCase, testSuite and etc. Is this part of groovy's api documentation or is this entirely SoapUI's? I've been checking api docs for both groovy and soapUI, but I fail to find any relevant information
2) In my wildest dream I would like to do some simple testing for a REST api.
- I got the service, method and resource defined
- I created a testsuite, added the request to a testcase
- now I want to write a simple script to create a unique name for my REST api parameter
- put unique string in a property; transfer this property to the REST api request as a parameter - (this is where I am struggling; I don't know how to access the return values from the REST api script-wise. In the automated scripting feature (pro) that you have, the argument provided there is named messageExchange something and everything works great there; but it's only available when using the cool automated scripting feature)
- retrieve the return output that's in JSON and parse it
- do some simple assertion on the JSON return output
- do some logging on fail/success
- profit?
You guys rock with this great tool. I would love to hear from you soon and thank you for your time,
tofurkey