SoapUI – deep mocking web services explored

Previously I wrote this SoapUI blog as I was looking to improve some integration testing against a web service. This blog page looks a bit deeper at the problem and how SoapUI could help.

Use case: Testing integration of complex web services

Lets say you have an application which uses an external parties web service. You have no control over the design of the third party service.  In addition its not possible to have a copy of the application.  The organization providing the service will provide a user acceptance version but that is all.  The service wraps something complex, its difficult to setup, and requires many other dependencies to operate correctly.  It would be to expensive an option to have a development instance.  Lets call this service xorg-ws, and our application xorg-integration.

This situation gives the developers of xorg-integration a problem. They want to write integration tests, but a full end to end test is not possible because we don’t have a suitable xorg-ws environment for testing against. Our contract with xorg-ws is in the form of the WSDL definition. We have some understanding of that contract and how to use the data returned. At the very least we would like to test, how our application integrates against the contract.

Continue reading

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Could soapUI be the way to mock complex webservices?

I have been looking for a good way to mock a complex web-service for integration testing. The idea being to simulate responses intelligently and be able to test a round trip without the actual service. Full integration tests are not possible for various reasons, so this might be the next best thing.

The tests against the service should return with configurable and adaptable behavior. They should be quick to run, easy to understand and simple to develop. This might be a solution:

http://www.soapui.org/gettingstarted/mocking.html

Has anyone used this or something similar? Comments welcome.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)