Forum Discussion
Rupert,
Thanks for your response. You have referred to a bunch of features I know nothing about, so I have more to learn....
However, my question came from watching one of the How-To videos on the SoapUI website. The video advised to do some actions but the features were not available in the free version of SoapUI that I am running, so I was stuck. I noticed a caveat which essentially said the instructons related to the Pro version.
I wanted to test that I was getting certain errors back from my RESTful web service in response to certain calls.
In response to others, I wanted to validate the XML content.
I could achieve neither of these tests.
Thanks,
-James.
Hi James,
No, problem, I'll try to help you where I can, so is it that you just need a basic guide on how to test (in particular assert content/status codes) for RESTful webservices with SoapUI?
If so, there are plenty of other options in addition to that video in the SoapUI doumentation?
I found these (haven't whatched the videos, but the blog looked like it might help):
http://www.joecolantonio.com/2012/09/05/soapui-how-to-test-a-rest-service/
https://www.youtube.com/watch?v=XV7WW0bDy9c
https://www.youtube.com/watch?v=uvrpjqPJDUU
https://www.youtube.com/watch?v=7YpJS--BqiI
Of course there are books too and other great blogs!
I haven't looked at the official SoapUI documentation for a little while, did have a quick look at http://www.soapui.org/getting-started/rest-testing.html (was that the one you mean't?). Without commenting too much, I did notice a fair few references to the pro / NG version, which is understandable given Smartbear look after the open source versions... but, fear not, there is no obstacle to do what you need with the open source version, millions do!
In your case, can't give you much more detail unless you provide a sample response, but to check for error messages for Rest Request TestSteps I would suggest:
Valid / Invalid Status Code Assertions (under Compliance, Status & Standards assertions)
XPath Match (under Property Content assertions)
Also, if you're confortable with Groovy script:
Script Assertions - you can do pretty much most things with these!
See also http://www.soapui.org/functional-testing/validating-messages/getting-started-with-assertions.html
Cheers,
Rupert
- jamescollett9 years agoContributor
Thanks, but most of this is over my head, I am afraid.
I have tried followingthe various suggestions. There seem to be good guidelines and principles but nothing concrete that I can follow. As soon as an example gets to the "Click this icon and choose Assertion" type of step, the icon or button or context menu option described inconveniently is not available in my edition of SoapUI.
I wish a SmartBear person could just provide some concrete instructions or simply put me out of my misery and confusion by confirming tat this feature is not available in the free product.
- nmrao9 years agoChampion Level 3
Going thru this thread.
soapui.org has both free version and commertial version documentation, usually it is mentioned if the perticular info is specific to commercial version.
On the community questions, we often see users saying, they are new, need help. Otherwise, some provide information for specific case and seeking help to proceed. Generally when people start using a tool, most of the stuff not clearly understand, but people keep trying in order to be able to achieve what they are looking for or tasks to be finished. I am no exception when started with sopaui, some times wait for solutions or do more search on the net. But never lose hope.
Just I was watching video after reading this thread, there are two feature from pro version. But both can be achieved in the free version as Rup had suggested already which requires some programming skills and which is a bit difficult for testers and fortunately, you seemed to be a developer (from description).
Find this page on how to add assertions
http://www.soapui.org/functional-testing/validating-messages/getting-started-with-assertions.html
and how to structure tests
http://www.soapui.org/functional-testing/structuring-and-running-tests.html (this is more important for automation)
Data driven tests with free edition
Hope this is useful and if you have specific questions feel free to create a topic.
And I wanted to let you know that there are large number of users for free version too
http://sourceforge.net/projects/soapui/files/soapui/
Related Content
- 11 months ago
- 2 years ago