YOUR FEEDBACK
Immo Huneke wrote: A well written article, an ingenious solution to a real problem often encountere...


2008 East
DIAMOND SPONSOR:
Data Direct
Frontiers in Data Access: The Coming Wave in Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
Intel
Virtualization – Path to Predictive Enterprise
Green Hills
IT Security in a Hostile World
JBoss / freedom oss
Practical SOA Approach
GOLD SPONSORS:
Software AG
The Art & Science of SOA: How Governance Enables Adoption
PlateSpin
Effective Planning for Virtual Infrastructure Growth
Fujitsu
Automated Business Process Discovery & Virtualization Service
Ceedo
Workspace Virtualization
Click For 2007 West
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TODAY'S TOP SOA & WEBSERVICES LINKS


Testing Process Orchestrations Based on the BPEL Standard
BPEL testing got a bad rap

Composite applications are made up of discreet services that have been tried and proven reliable, but building an orchestration that incorporates services that come from several sources, some of them outside of the company, could introduce testing hazards beyond just bad output. For example, let’s say that your business has a process that includes activities to run a credit check with an external credit agency or to schedule a package delivery with an external shipping service. When doing either of those tasks, we are introducing into the process two elements that can’t be easily tested live, simply because we don’t own the services internally.

Many processes also include delays or timeouts that are built into the process – this can further complicate matters, so testing each run-through of the application could take days. Besides these external factors, there are also internal processes that are in heavy use for other applications that are subject to changes and downtime. What you’re left with is few, if any, services that are easy to test.

Meanwhile you have out-of-band events, correlation, and other factors that present challenges to testing composite applications. The need to pay extra attention to these risk factors introduced by building applications from loosely coupled services doesn’t diminish the value of building standards-based composite applications, but a methodical and visual system to address these factors can extend the value even further.

In fact, unit testing for BPEL-based applications doesn’t have to be harder than testing any other kind of program. If you take a few reasonable steps you’ll have the information you need to confidently revise and deploy your standards-based composite application using a test-first methodology.

A clear first step is to take the process offline. For example, if your application calls for a credit check, it may be impractical to send 10, 100, or 1,000 requests to the credit agency while you’re testing. This can be done by collecting the actual responses created by live use of the service or generating sample data on your own to represent both the expected responses and all likely alternate responses, like responses that indicate a failure or responses that contain unexpected data. By using sample data in place of actually calling live services you can safely run process tests and be guaranteed of the expected outcome.

At this point you’re ready to run your suite of process scenario tests. The best way to understand the flow of activity and how problems develop is via a visual representation of where scenarios have passed, failed, or reached an unknown state. For example, displaying a report showing that out of 100 scenarios, 67 passed, 30 failed, and three reached an unknown state. This will help you find the problem areas and avoid putting a band-aid on certain symptoms when the real problem is somewhere else.

Finally, you need to annotate the results to pinpoint the problems further. So, of the 30 failures detected, you’d want to be able to visually depict where exactly in the process orchestration the failure occurred. From there, you’re armed to fix the issues and retest the application until all of the results are as you expect and any failures are dealt with to your satisfaction.

Many architects believe that testing composite applications is extremely difficult, or even impossible. However, if the correct steps are taken, that stigma can be erased, and testing composite applications can be just as easy as testing other any other program, and testing is crucial to gaining maximum benefit from your SOA and composite applications.

About Mike Pellegrini
Mike Pellegrini is a principal architect in the Office of the CTO at Active Endpoints. For the past 15 years, he has worked for both leading software vendors and IT organizations in moving technology solutions from early adoption to mainstream acceptance.

WEB 2.0 LATEST NEWS
Nowadays we can observe changes going on in management and especially project management in organizations. More and more, organizations are abandoning top-down management style. Among them are the New York Times, Tribune Co., Ernst & Young and many others. Even the world biggest corpor...
In this Exclusive Q&A with Jeremy Geelan of SYS-CON's Cloud Computing Journal, Rajeev Kutty of Keynote Systems speaks of the factors currently driving companies to increase their effort in monitoring the performance of their Web and mobile applications, and about how Keynote foresees a...
Since Web 2.0 kicked off scarcely a day goes by without a headline targeting mashups and their enablers, AJAX and Web Services, as the next hot Web technologies. Mashups are Web sites that integrate a variety of services (e.g., news feeds, weather reports, maps, and traffic conditions)...
Industry blogger Alex Bunardzic writes in his 'Ethical Software by Alex Bunardzic' blog: 'Now that Microsoft has jumped onto the web 2.0 bandwagon, it is more than obvious that Web 2.0 is dead as a doornail. Everyone knows by now that anything Microsoft touches turns into this big slim...
'While the last decade was focused on the Web, the next phase in the evolution of our industry will be on the convergence of Web, mobile and desktop applications and the ability to extend existing applications with these new technologies for a consistent user experience regardless of h...
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

Click Here

SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE