QA Focus

Aug 7 2008   3:39AM GMT

Functional Testing of Web Services: Part III



Posted by: Greg Annen
SOAP, Software Quality, Functional testing, Web services testing, Web services, VUGen, SOAPSonar, HP Quality Center

After determining the requirements for functional testing of web services, it was necessary to examine some of the readily available test tools. My employer depends on the HP (formerly Mercury Interactive) suite for most test automation, and our performance test gurus recommended a LoadRunner component called VUGen — for Virtual User Generator. Among others, we also reviewed SOAPSonar from CrossCheck Networks. These two tools ranked the highest with our test-tool-testers for overall usability.

As we discussed previously, good web service test tools all share certain features:

  • Scan WSDL (file or URL) to create request and response structure
  • Contain user interface to XML for request and response editing
    • Response stored as a checkpoint
    • Regression test compares checkpoint to runtime values
  • Allow parameterized values for request and corresponding response (data-driven)

The comparison tests were relatively simple: given a SOAP request provided by the web service developers, use each tool to create a simple data-driven automated test which submits the request to the web service and then validates the response against a previous known good run. A typical regression scenario!

The initial results were also straightforward. SOAPSonar actually ranked highest for ease of use, but does not offer integration (at least, not out of the box) with HP Quality Center or HP Performance Center.

Because of its relative ease of use and its integration (of course) with HP Quality Center and Performance Center, HP VUGen was selected as the preferred engine for our enterprise web service testing solution.

a caveat

Although VUGen can be installed and run standalone, HP does not sanction its standalone use for functional testing. So, to utilize the VUGen engine for functional testing of web services, HP has developed a Service Test tool as the licensed front-end. In addition to integration with Quality Center, the Service Test tool also allows the user to create a web services test as a Business Process Test (BPT). For those not familiar with Quality Center, this allows users not well-versed in test tool technology to create complex test plans by drag-n-drop of BPT components stored in the Business Process module database.

So your choice of a test tool depends on your current automation environment, your budget, and the expertise of your tool users. The same process for developing and executing SOAP test cases applies, regardless of the tool chosen.

In future postings, we will examine the capabilities of some of the other tools which were included in this investigation.

Keep automating!

Comment on this Post


You must be logged-in to post a comment. Log-in/Register

Swathika  |   Jun 8 2010   6:41PM GMT

I just have a question, is there a way to compare the response xml with the expected xml in HP Service test. we have integrated HP Service test with the quality center. but we are struggling to findout validating the response xml with the base lined xml.

please reply to this id: swathi_k24@yahoo.co.in


 

Swathika  |   Jun 15 2010   4:59PM GMT

I found that there is a sub menu item CompareXML files in HP Service test, through which we can compare baselined vs response. but the thing is i have to check it for all the test cases.to automate,is there any method which references the compare xml files item. please let me know to this mail id:swathi_k24@yahoo.co.in