Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 A model-based validation framework for web services V. Pretre, F. Bouquet, C. Lang Laboratoire dinformatique de luniversité de Franche-Comté Besançon,

Similar presentations


Presentation on theme: "1 A model-based validation framework for web services V. Pretre, F. Bouquet, C. Lang Laboratoire dinformatique de luniversité de Franche-Comté Besançon,"— Presentation transcript:

1 1 A model-based validation framework for web services V. Pretre, F. Bouquet, C. Lang Laboratoire dinformatique de luniversité de Franche-Comté Besançon, France STV07 - Paris, december 5, 2007

2 2 Table of contents Web services quality WS overview / Relations between WS / Quality of WS A theoritical solution Modeling / Testing / Certifying quality The validation framework Relations discovery / Pool generation / Tests execution … Conclusion & future work

3 3 Table of contents Web services quality A web services overview Relations between web services Quality of web services A theoritical solution The validation framework Conclusion & future work

4 4 Web services quality An overview of web services Principles: client-server application XML messages In practice: SOAP encapsulation http[s] Linked technologies: WSDL UDDI … customer UDDI declaration searchXML messages Internet Web service

5 5 Web services quality Relations between operations Compositions A web service operation acts as a client of another one Several kind of compositions: local/distributed synchronous/asynchronous static/dynamic travel agency customer bankhotelairline company

6 6 Web services quality Relations between operations Temporal dependencies An operation can be called only if another one has been called previously Due to shared datas: server side (database …) client side Two types: each time at least once database insertionreading Customer resultsreuse

7 7 Web services quality Quality of web services Many definitions: quality of service (accessibility, response time …) confidentiality of datas quality of results Sources of the problem: quality of development hosting network relations between operations

8 8 Table of contents Web services quality A theoritical solution Modeling web services behaviour Test generation and execution Certification of quality The validation framework Conclusion & future work

9 9 A theoritical solution Modeling WS - data used & interface Done in the class diagram Two types of classes: datas used by web services web services interface Methods used in tests have to be accessible for tester operations

10 10 A theoritical solution Modeling WS - behaviour of operations Written in OCL Defensive modeling: no pre-conditions errors raised in post- conditions allows security testing All behaviours must be modeled Pre-condition: self.mission.status = waitingValidation and self.mission.employee != self.user Post-condition: if answer then self.mission.status = validated else self.mission.status = refused endif ifthen ifthen result = ok else result = autoValidation endif else result = unvalidableMission endif

11 11 A theoritical solution Modeling WS - temporal evolution State-chart diagram Visual representation of temporal evolution Complets OCL userLoggedIn wsDeployed validateOk errorType1errorType6 errorType2errorType5 errorType3errorType4 errorType7 granted

12 12 A theoritical solution Modeling WS - initial state Instance diagram At least one instance for each class Data chosen to: help test generation cover all possible cases be representative Real data needed Mission::mission1 status = waitingValidation Mission::mission2 status = empty Mission::mission3 status = empty Employee::fakeEmployee level=0 Employee::blueLeader level=3 Group::blue Employee::blueMember1 level=4 ValidationRight::blue

13 13 A theoritical solution Test generation and execution Tests generated from the model Tests executed in normal conditions of use Who executes tests ? customers: many test execution, quality ensured vendor: only one test execution, customers may not trust in test results third party: tests results easily shared with customers, but their trust must be obtained

14 14 A theoritical solution Certification of quality Two solutions known: only web services that have passed tests are published The audition framework for testing web services interoperability (Bertolino, Polini ) a mark is given according to tests results Quality attribute for a component quality model (Alvaro, Santana de Almeida, Romero) We chose the second solution: one mark by operation represents the percentage of passed tests

15 15 Table of contents Web services quality A theoritical solution The validation framework Overview Discovering dependencies from model Computing pools of dependencies Tests execution Certification to customers Conclusion & future work

16 16 The validation framework Overview 2 - declaration 3 - treatments of model 4 - test generation 5 - creation of test agents 6 - execution 7 - mark computation 8 - WS search 1 - modeling 9 - results & marks Agent creator

17 17 The validation framework Discovering dependencies Needed for pools computing Composition: found in OCL code only synchronous Temporal dependencies: can not be automatically discovered no common patterns in the state-chart creation of sequence diagram to describe them serviceStarted userLoggedIn userRegistered register() login() opened open()save() create() Client Self 1: register 2: login

18 18 The validation framework Pools of dependencies One pool by operation all operations on which it depends Used to: compute marks planify test execution Produced in three steps creation of the dependency graph computation of transitive enclosure each neighbour of an operation belongs to its pool opentagcategorizepublish save prePublish create login registerping opentagcategorizepublish save prePublish create login registerping

19 19 The validation framework Tests execution Tests splitted into waves: 1. operations without dependencies 2. operations depending on previously tested operations 3. …. Possible because dependency graph is a DAG Executed by agents dispatched on the Internet opentagcategorizepublish save prePublish create login registerping 5 1 2 3 4 opentagcategorizepublish save prePublish create login registerping

20 20 The validation framework Mark computing A temporary mark obtained from tests Final mark based on pools of dependencies (lowest mark of the pool) shows problems not raised by tests quick update of mark with new versions opentagcategorizepublish save prePublish create login registerping 95 100 50 90 95100 80 100 95 50 80 100 opentagcategorizepublish save prePublish create login registerping

21 21 Table of contents Web services quality A theoritical solution The validation framework Conclusion & future work Conclusion Known issues

22 22 Conclusion The theoritical approach: based on an UML modeling solution (wide spread language) unique model for behaviour, compositions & temporal dependencies The framework : Concrete application of the theoritical approach easy to use for vendors and customers: based on a norm (UDDI) marks easy to understand no modification for the web services or deploiment framework any kind of web service can be found on the UDDI server

23 23 Known issues & future work The framework is not completly implemented: missing links between UDDI server and test generator tool for model merging in case of distributed composition The mark may not be fully representative 3 tests and one fail => 66% 100 tests and 34 fails => 66% All web services can not be tested and certified


Download ppt "1 A model-based validation framework for web services V. Pretre, F. Bouquet, C. Lang Laboratoire dinformatique de luniversité de Franche-Comté Besançon,"

Similar presentations


Ads by Google