Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
ChorUnit Fisl 12
1. ChoreUnit: Testing framework for
Web Services
Felipe Besson, Guilherme Nogueira, Leonardo Leite
{besson, gmaio, leofl}@ime.usp.br
Porto Alegre, July 2nd, 2011
6. Web Services - Applications
● Machine-machine communication
00111100
10111010
10111101
11110000
7. Web Services - Applications
● Machine-machine communication
● Integrate heterogeneous systems
8. Web Services - Applications
● Machine-machine communication
● Integrate heterogeneous systems
● Business automation
Comprar
Z
z
z
z
z
zz
Z
Z
9. Web Services - Applications
● Machine-machine communication
● Integrate heterogeneous systems
● Business automation
Buy
Z
z
z
z
z
zz
Z
Z
Service provider
Client
10. Web Services - Applications
● Machine-machine communication
● Integrate heterogeneous systems
● Business automation
● Data access
WS
11. Web Services - Applications
● Machine-machine communication
● Integrate heterogeneous systems
● Business automation
● Data access and creation (colaborative)
WS
20. WS Client with Jax-WS
StoreWSService service = new StoreWSService();
StoreWS store = service.getStoreWSPort();
List<CD> cds = store.searchByGenre("Rock");
24. Stub creation can be a problem
Process:
1. create stubs
2. add classes to
project
3. understand classes
Service interface
changed!
%$#@
Developer
25. Problems when testing
● Tests must be almost completely
rewritten
● Problem to integrate different services
● How to do TDD without stubs?
%$#@
26. Our Goals
Make testing web services easy
● Interact with web services without stubs
● Easily validate the operation's responses
● Writing tests before the actual implementation
● Integrate tests and framework to the development
environment
33. Next steps
● Implement new features
● REST services support
● Integration test
– Validate messages exchanged
between services
● Experimentation
34. Questions?
This research has received finding from:
More Information: http://ccsl.ime.usp.br/baile/VandV
Repository: https://github.com/choreos/choreos_v-v/