Friday, May 29, 2009

Testing webservice- Simplified with SoapUI

Testing webservice during development time can be tedious. Thanks to SoapUI, not anymore. It’s a free tool (I have not used the pro version, very happy with the free version itself) where you can create a SOAP request, send it to your webservice and see the response. The steps are very simple ->
  • Import the WSDL
  • Create your test suite
  • Drag the requests to the test suite
  • Enter the input values in the request (in XML format)
  • Execute the test case and you will see the response in the XML format

During development time, I found it very convenient to use for unit testing. Once you exposed an API, export the new WSDL and test is for all possible inputs. Once you create the test cases, you can save it with the SoapUI project to use later.

You can use SoapUI for functional testing as well by combining different requests in the same test case. You can also write your test client in Groovy script.

I think it is a great tool for webservice developers for unit testing and recommend you to try if you have not already.

5 comments:

  1. It's not clear.
    How can we test the application?

    ReplyDelete
  2. can you throw light on how to data parametrize the input values of the request? will be helpful

    ReplyDelete
  3. With SOPAUI Pro version, you can read test data to SOAPUI properties from an external data storage (DB, XML or Excel etc). You can use soapui properties in requests, scripts or xpath queries etc. The tutoarial at http://www.eviware.com/blogs/oleblog/?p=619 has step by step instruction to create data driven test cases. Hope this helps.

    -Monika

    ReplyDelete
  4. Hello,


    For leveraging traffic from the internet, I have manually collected a list of quality blogs and sites with whom I am interested in getting associated.

    I liked your Site/blog and i'm interested in having my blog's text link in your blog roll or Friends Section.

    To process this link exchange please place my blog on your home page using the
    below info

    Title: Multithreaded TCP Proxy Tunnel Code


    Url: http://www.adamsinfo.com/multithreaded-tcp-proxy-tunnel-code/

    And send me your link info with confirmation of my link so that I could place
    you link on my blog. We will make link back to you on our home page (PR 5).

    I hope I will hear from you as soon as possible.
    Sincerely,
    Webmaster
    Adamsinfo.com
    seo@apnicsolutions.com

    ReplyDelete
  5. Excellent Post. Also visit http://whiteboxqa.com/selenium.

    ReplyDelete