Comments
bruce.armstrong wrote: Somebody just said it better than I did, and with more chops to say it: Open Letter to Mark Zuckerberg, Sheryl Sandberg & Facebook Mobile
Cloud Computing
Conference & Expo
November 2-4, 2009 NYC
Register Today and SAVE !..

2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
In many cases, the end of the year gives you time to step back and take stock of the last 12 months. This is when many of us take a hard look at what worked and what did not, complete performance reviews, and formulate plans for the coming year. For me, it is all of those things plus a time when I u...
SYS-CON.TV
Parasoft's SOAtest 3.0
Ensuring Acceptable Performance While Creating A .NET Web Service

Recently, a client asked me to create a new .NET Web Service that would let them do sales tax calculations from any computer on their network. The product they had been using was an old-fashioned C program meant for a single computer. They used to wrap this in a COM component and access it via traditional Active Server Pages, but now they wanted to migrate to fully managed code.

There were two reasons that I looked to SOAPtest to assure the quality of my newly constructed Web Service. On one hand, I had been working to inculcate a sense of quality craftsmanship in the development group at this client and wanted to demonstrate that creating unit tests for code could be fun and productive. On the other hand, the client was concerned that the new .NET Web Service would perform the same or better than its current ASP-based solution.

Installation was straightforward. It only took about five minutes and consisted mainly of an installation wizard where, in this case, I was able to accept all the defaults. The one thing I noticed immediately was that it asked me whether or not I wanted to install the Java Runtime Engine. In a product marketed to .NET developers, I thought that strange, but I accepted the default and it seemed to work fine.

After the install, I started up the application and was immediately prompted for my license information. I was automatically e-mailed this information by Parasoft's servers and it was easy enough to cut-and-paste it into place, however, I was a little disappointed that the license was tied to a specific machine. See, a week into my testing I had to relocate to a different machine and it forced me to ask for a different license.

Once I had provided my license, I was able to create my first set of unit tests in a little under 10 minutes. I particularly liked SOAPtest's ability to "remember" the results returned from a Web Service during a given run and use that as the basis for determining the accuracy of results returned later. For example, I set up a unit test to ask for the tax on a $10 sale of food in San Leandro, California. Once I got the initial results of 85 cents back, I told SOAPtest to remember that for future test runs. From this point on, not only would SOAPtest validate the shape of the responses returned to this test, but also the exact dollar value - with no coding on my part whatsoever!

Once I created my unit tests and verified the basic accuracy of the Web Services I created, my next task was to create Load Tests to prove to my client that my Web Services would exhibit acceptable performance. For this purpose, SOAPtest provides multiple kinds of Load Tests out-of-the-box.

  • Bell - increases the load until the middle of the test run, and then tapers it off. This is intended to simulate the typical flow of work in a business system during an average workday.
  • Buffer Test - alternates high and low loads. You should see the performance of your application go back to normal during the low loads, otherwise you probably aren't freeing up the resources properly.
  • Linear Increase - builds the load throughout the test.
  • Steady Load - maintains a constant load throughout the test.
Of all of these, I used the Buffer and Steady load tests since the Bell and Linear weren't useful in my particular circumstances. They generated excellent statistics and very easy-to-read graphs, as shown in Figure 1.

My only gripe with the Load Testing was that on my first run it showed that my Web Service generated a number of errors. Looking at the interface and paging through the documentation for about half-an-hour, I couldn't figure out how to go from the raw number of errors displayed to punch down into the actual error messages that were returned in each failure case. Ultimately I realized that I was running my Web Service on Windows XP and more concurrent users than XP's license allowed. Moving my Web Service to Windows Server 2003 solved the problem, but I still don't know how to punch down into the individual error messages.

In conclusion, I would say that if you are just writing one or two simple Web Services not intended for high-performance, complex, or interoperable tasks, you can probably get what you need for free by writing your tests with a tool like NUnit.

Given its amazingly rich feature set, however, SOAPtest is an absolute must-have for anyone who is doing truly advanced work with Web Services.

Company Information

Parasoft
401 E. Huntington Drive
Monrovia, CA 91016
Phone: (888) 305-0041
Fax: (626) 305-9048
Sales: info@parasoft.com
About Derek Ferguson
Derek Ferguson, founding editor and editor-in-chief of .Net Developer's Journal, is a noted technology expert and former Microsoft MVP.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

Parasoft's SOAPtest 3.0. Recently, a client asked me to create a new .NET Web Service that would let them do sales tax calculations from any computer on their network. The product they had been using was an old-fashioned C program meant for a single computer.


Your Feedback
Web Services Product Review wrote: Parasoft's SOAPtest 3.0. Recently, a client asked me to create a new .NET Web Service that would let them do sales tax calculations from any computer on their network. The product they had been using was an old-fashioned C program meant for a single computer.
SOA World Latest Stories
SYS-CON Events announced today that PerspecSys Inc., the leader in cloud data protection solutions for the enterprise, has been named “Silver Sponsor” of SYS-CON's 10th International Cloud Expo, which will take place on June 11–14, 2012, at the Javits Center in New York City, New York....
Private clouds solve many problems for enterprises and bring unique operational challenges along with them. There are dozens of companies of all sizes that will build you a private cloud and turn over the keys – then what? Trying to convert a traditional enterprise IT operations team t...
Like a moving company for the cloud, Racemi provides the ability to easily migrate Windows server images to public clouds. The company is a sponsor at the upcoming Cloud Expo where visitors can see Racemi demonstrate server migrations. Racemi announced on Wednesday its DynaCenter soft...
As a Platinum Plus Sponsor of Cloud Expo New York, Oracle is offering special passes to SYS-CON's 10th International Cloud Expo, which will take place on June 11–14, 2012, at the Javits Center in New York City, New York. With more than 380,000 customers – including 100 of the Fortune ...
SAP on Tuesday announced its intention to buy Ariba for $4.3 billion, a 19 percent premium on Ariba's market capitalization. The move comes soon after SAP's SuccessFactors February buy and shows that SAP is quickly and aggressively acquiring its way to a full cloud business services c...
How do we connect clouds? Since the Internet has no SLA, many organizations are concerned about being exposed to the vagaries of the Internet. There are only a few options for concrete quality of service (QoS) when accessing public clouds. In his session at the 10th International Clo...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE