Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
systems –
with examples of Oracle SOA Suite 11g
Guido Schmutz,
Technology Manager / Partner
Trivadis AG
18.11.2009, Nürnberg
Basel · Baden · Bern · Lausanne · Zürich · Düsseldorf · Frankfurt/M. · Freiburg i. Br. · Hamburg · München · Stuttgart · Wien
Introduction
Guido Schmutz
Working for Trivadis for more than 12 years
Oracle Ace Director for Fusion Middleware and SOA
Co-Author of different books
Consultant, Trainer Software Architect for Java, Oracle, SOA
and EDA
Member of Trivadis Architecture Board
Trivadis Technology Manager
Contact: guido.schmutz@trivadis.com
13 locations in Switzerland,
Germany and Austria
~ 540 employees
3 © 2009
Agenda
Introduction
Even if in a SOA a lot of existing functionality is used, it’s not enough to just
test these
SOA adds some additional logic via Router, Filter, Orchestration, which has to be
tested as well
Tests are usually carried out in a synchronous way, SOA often works
asynchronously!
Minimal unit of test in a SOA tends to be larger and more data driven
than in traditional applications
Generator
Produces the test data and with it calls the components under test
Verifier/Asserter
Compares the actual test results with the expected results
It’s important that a Verifier/Asserter makes an accurate, binary decision whether a
test was successful or not
Mock/Stub
Testing component that simulates part of the system that is not under test
If an integration test fails in the upper layers, its unlikely that the reason
is a faulty lower layer component since these components have already
been tested
G V
Also referred to as
Bottom-Up Testing
BPEL G V BPEL
Introduction
Summary
Internally
Request
Generate ID
Externally
SCA composite once for the process with the connection to the
customer system and once for the credit card validation
First SCA composite is called from the second
Introduction
Answer will be
tested against
the expected
message
(Verifier)
Introduction
After the isolated testing of each single component, we can be sure, that
these work correctly by itself
The soluiton is again a Mock Service, which takes over the place of the
external services G V
BPEL
Mediator /
ESB
M
Best Practices for the testing of SOA-based systems © 2009
But how to I get these Mock Services?
Introduction
Summary
Guido Schmutz,
Technology Manager / Partner
Trivadis AG
18.11.2009, Nürnberg
Basel · Baden · Bern · Lausanne · Zürich · Düsseldorf · Frankfurt/M. · Freiburg i. Br. · Hamburg · München · Stuttgart · Wien