Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 UP MBT Extending the Unified Process with Model-Based Testing Fabrice Bouquet, Stéphane Debricon, Bruno Legeard and Jean-Daniel Nicolet MoDeV 2 a 2006.

Similar presentations


Presentation on theme: "1 UP MBT Extending the Unified Process with Model-Based Testing Fabrice Bouquet, Stéphane Debricon, Bruno Legeard and Jean-Daniel Nicolet MoDeV 2 a 2006."— Presentation transcript:

1 1 UP MBT Extending the Unified Process with Model-Based Testing Fabrice Bouquet, Stéphane Debricon, Bruno Legeard and Jean-Daniel Nicolet MoDeV 2 a 2006 Friday, November 20, 2015 FRE 2661 Projet Cassis

2 2 > Outline 1. Unified Process (UP) 1.1 Overview 1.2 Structure 2. Model-Based Testing (MBT) 3. Extending the Unified Process with Model-Based Testing (UP MBT ) 3.1 Process 3.2 Workflows 3.3 Phases 4. RTAXPM case study 5. Conclusion and Future work UP MBT

3 3 > Introduction Process The UP : a software engineering process (SEP). MBT : a process conducting the generation and execution of tests. UP + MBT = UP MBT : methodological framework for MBT. Modeling UP MBT Analysis model Test Model > Design model >

4 4 > Outline 1. Unified Process (UP) 1.1 Overview 1.2 Structure 2. Model-Based Testing (MBT) 3. Extending the Unified Process with Model-Based Testing (UP MBT ) 3.1 Process 3.2 Workflows 3.3 Phases 4. RTaxPM case study 5. Conclusion and Future work UP MBT

5 5 > UP > Overview (1) The UP, a SEP Requirements Software. A template of process to be customized. The UP is : Iterative : short time-boxed iterations made of workflows. Incremental : each iteration generates a partially complete version of the final system. UP MBT

6 6 > UP > Overview (2) Architecture-centric : Develop and evolve a robust system architecture. Focus of early iterations. Risk driven : Develop high-risk elements in early iterations. Requirements driven through use case : To help plan iteration. UP MBT

7 7 > UP > Structure A SEP (here the UP) defines : WHO participate? WHAT is there to do? HOW to develop it? WHEN to deliver a version? A 2 axes structure : Workflows Phases UP MBT

8 8 > Outline 1. Unified Process (UP) 1.1 Overview 1.2 Structure 2. Model-Based Testing (MBT) 3. Extending the Unified Process with Model-Based Testing (UP MBT ) 3.1 Process 3.2 Workflows 3.3 Phases 4. RTAXPM case study 5. Conclusion and Future work UP MBT

9 9 > MBT > Overview Goals : Identify failures in software. Functional validation of a system using a model. Key practices : Use of a model, abstract enough, that capture the expected behavior of a system. Test cases generation from selection criteria. Execution on the System Under Test. UP MBT

10 10 Building a model Generating tests Setting up adapter Executing tests Model Test selection criteria Test cases Test scripts adapter layer SUT verdict ActivitiesDocuments Defining test selection criteria 1 2 3 4 5 adapter UP MBT > MBT > Processes

11 11 > Outline 1. Unified Process (UP) 1.1 Overview 1.2 Structure 2. Model-Based Testing (MBT) 3. Extending the Unified Process with Model-Based Testing (UP MBT ) 3.1 Process 3.2 Workflows 3.3 Phases 4. RTAXPM case study 5. Conclusion and Future work UP MBT

12 12 > UP MBT > Process Use case model Analysis model > Design model > Implementation model > Test Model > Executable scripts > Adaptation layer > Validation Tests generation Development Process Validation Process

13 13 > UP MBT > Workflows Design workflow : Production of the test model, Design and Test models are : Produced in parallel, Independent to ensure the quality of the generated tests. Test target and selection criteria definition Test Cases UP MBT

14 14 > UP MBT > Workflows Implementation workflow : Production of an implementation for the design model, Production of the adapter and the adaptation layer, Generation of test scripts from the adapter and the test cases. Test workflow : Execution of tests scripts on the system. UP MBT

15 15 > UP MBT > Phases Inception : Not impacted by the approach. Elaboration : Production of the test model, the adapter and the adaptation layer. The adaptation layer architecture should be defined. UP MBT

16 16 > UP MBT > Phases Construction : Evolution of points of control and observation to keep coherence with design. Transition : Manually produced tests scripts and generated tests scripts are executed on the SUT. UP MBT

17 17 > UP MBT > Benefits Corrections produced earlier in the process. Quality improvement and better coverage of produced tests. Increased productivity : Automatic tests generation. Functional evolutions are easy to introduce in test campaign. From an incremental point of view. UP MBT Questions Feedback Analysis model Test Model

18 18 > Outline 1. Unified Process (UP) 1.1 Overview 1.2 Structure 2. Model-Based Testing (MBT) 3. Extending the Unified Process with Model-Based Testing (UP MBT ) 3.1 Process 3.2 Workflows 3.3 Phases 4. RTAXPM case study 5. Conclusion and Future work UP MBT

19 19 > RTaxPM > Context Project with the Canton of Geneva Information and Technology Center (CTI), Switzerland. Good practices exist, but they are not applied systematically in every project A reference UML model used to capture many project aspects, like business modeling, use cases, analysis, design... Most projects perform some testing, but neither in a systematic nor uniform way. UP MBT

20 20 > RTaxPM > Overview The Cantonal Fiscal Administration (AFC) started, a few years ago, the rebuilding of all taxing applications. An important sub-project is the taxation of legal entities named RTaxPM (Refonte Taxation Personnes Morales). Once a taxation file has been completed, several different taxes are calculated (federal, cantonal and commune-bound). These taxes must then be distributed among the various communes of the canton. UP MBT

21 21 > RTaxPM > Overview The tax computation itself involves complex business rules (several taxes, percentage lookup tables, threshold effects, …) Besides unit testing, a functional testing framework has been developed previously Specific cases have been manually devised with the help of a complex Excel spreadsheet It relies on a database updated with production data (percentages) on a regular basis A need for testing of both the computation and the life cycle exists UP MBT

22 22 > RTaxPM > Taxation Lifecycle Embedded states Computing-bound conditions Back loops Complex business rules Security issues (stamping requires special privileges) In taxation At work Controlled To stamp Correct Canceled Cancel Validate To notify [No stamp] Stamp Notified Notify Stamp To correct Opposition Suppress

23 23 > RTaxPM > Lifecycle for MBT In taxation To correct Opposition Canceled Cancel Notified NotifySuppress To notify [taxer.allow_stamp=true or taxation.stamp_needed=false] Stamp Controlled Check Validate At work Creation Correct To stamp [taxer.allow_stamp=false and taxation.stamp_needed=true] Taxer logged in Login( taxer) Group leader logged in Login( group leader) Taxer logged out Logout( taxer)

24 24 > RTaxPM > Generated Test cases Function – Taxation computation 250 generated test cases and expected results Combinatory on tax reduction and tax scale Function – Taxation life cycle 50 generated test cases : all transitions all-one-loop paths on the life cycle Test combinatory as round trips within the UML state machine UP MBT

25 25 > RTaxPM > Tests execution Use a XML framework with JUnit to execute generated test cases

26 26 > Outline 1. Unified Process (UP) 1.1 Overview 1.2 Structure 2. Model-Based Testing (MBT) 3. Extending the Unified Process with Model-Based Testing (UP MBT ) 3.1 Process 3.2 Workflows 3.3 Phases 4. RTAXPM case study 5. Conclusion and Future work UP MBT

27 27 > Conclusion This first experimentation is a success for the CTI and UP MBT Integration of MBT into a SEP : Can accelerate its adoption. Reduce the risk of incoherence between design and test model. Give permanent feedback from the test model to the analysis model. Don’t start from scratch but use the analysis model to derive the test model. UP MBT can be used with any tools supporting UP UP MBT

28 28 > Future work Experimenting : With other case study the parallel development of the design and test model. Defining : Guidelines to model for test. A subset of UML. An action language to be used for MBT.


Download ppt "1 UP MBT Extending the Unified Process with Model-Based Testing Fabrice Bouquet, Stéphane Debricon, Bruno Legeard and Jean-Daniel Nicolet MoDeV 2 a 2006."

Similar presentations


Ads by Google