Testing & Monitoring Web Services Using soapUI in NetBeans IDE

With its latest version 6.1, NetBeans IDE provides development support for JAX-WS, JAX-RPC and now Axis2 web services. Additionally, it has added support for testing and monitoring web services using soapUI.

What is soapUI?

soapUI is a leading tool for Web Services Testing, developed by eviware. It's free, open-source software, with a vast feature set that includes Functional and Load Testing for Web Services, Web Services Simulation and Web Service Monitoring. In addition to its standalone version, it provides a plugin for NetBeans, which is now available on the NetBeans IDE Update Center.

Web Service Testing and Monitoring Features in NetBeans

With the integration of soapUI Plugin in NetBeans IDE 6.1, a variety of Web Service Testing features have been added, including the following:

  • Web Service Functional Testing
  • Web Service Load Testing
  • Web Service Simulation
  • Web Service Monitoring
  • Validating WS-Interoperability (WS-I) Compliance

Installation and Setup

Starting with NetBeans IDE 6.1, the soapUIModule Plugin is available from the stable update center. Once the Plugin is installed, no additional setup is needed. It adds a soapUI pop-up menu to the IDE's Tools options. Select Preferences from the pop-up menu to set up optional configuration, such as proxy settings.

Functional Testing

Testing is an integral part of any software development process. In the case of Web Service development, it is essential to make sure the operations provided by the Web Service perform correctly. NetBeans IDE 6.1 allows users to create and execute Test Cases and Test Suites for Web Services.

Creating Test Cases

To create Web Service Tests for a Web Service, first create and deploy the Web Service you need to test. Select the Web Service Node in the Projects tab and right click on it. Invoke the "Create Web Service Tests" from the pop-up menu. The IDE downloads the WSDL for the Web Service and then displays the following dialog.

Accept all the defaults and accept the name of the Test Suite. This will create a test suite for the web service, which is shown as part of the project node.

5
Average: 5 (1 vote)
AttachmentSize
figure1.jpg12 KB
figure2.jpg36 KB
figure3.jpg12 KB
figure4.jpg68 KB
figure5.jpg44 KB
figure6.jpg32 KB
figure7.jpg28 KB
figure8.jpg28 KB
figure9.jpg28 KB
figure10.jpg52 KB
figure11.png96.08 KB
figure11.png96.08 KB
figure12.png3.63 KB
figure13.png11.48 KB
figure14.png27.55 KB

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Varun Nischal replied on Thu, 2008/06/26 - 2:16pm

Hi,

My name is Varun Nischal and I'm the NetBeans Community Docs Contribution Coordinator. Your Dzone entry would make fantastic Tutorial for our Community Docs wiki (http://wiki.netbeans.org/CommunityDocs).

If you aren't a Sun Employee, Would you be willing to contribute it? If you need any help or have any questions, please contact me at nvarun@netbeans.org

I look forward to hearing from you.

Thanks,
Varun Nischal
http://nb-community-docs.blogspot.com/
--
"You must do the things you think you cannot do."

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.