SlideShare a Scribd company logo
1 of 15
Presented By :
Dilruk G.A. (148209B)
Jagoda S.D.
(148214K)
Tuesday, June 16, 2015 1
Model-Driven Testing with
UML 2.0
Zhen Ru Dai
Fraunhofer FOKUS, Kaiserin-Augusta-Allee 31, 10589 Berlin, Germany
dai@fokus.fraunhofer.de
Index …
 Introduction
 Approaches to Model-Driven Testing
 The UML 2.0 Testing Profile (U2TP)
 A Methodology on Model-Driven Test
Development
 Test Design Model Transformation
 Summary
Tuesday, June 16, 2015 2
Introduction
 The Model-Driven Architecture (MDA) is not only
about system modeling.
 The early integration of testing into the
development process becomes more and more
important.
 U2TP bridges the gap between designers and
testers by providing a means for using UML for
both system modeling and test specification.
Tuesday, June 16, 2015 3
Approaches to Model-Driven Testing
Tuesday, June 16, 2015 4
The UML 2.0 Testing Profile
(U2TP)
 The Architecture Concepts
 System Under Test (SUT) – One or More Object
 Test Components – Objects within test system
 Test Context - Message between components
 Scheduler - Control the test execution and test components
 The Behavior Concepts
 State Machines and Activity Diagrams - define test stimuli,
observations, test control/invocations, coordination and
actions
 Test Case – Normative test behavior is specified
 Validation Action - performed by a local test component to
inform the arbiter about its local test verdict
 Test Verdict – Result of the executed test (pass, inconclusive,
etc.) Tuesday, June 16, 2015 5
The UML 2.0 Testing Profile
(U2TP)
 Test Data Concepts
 Wildcards– Handle unexpected events, or events containing many
different values
 Data pools – Associated with test context and include concrete test
data
 Data Selectors - Operations to retrieve test data from the data pool or
data partitions
 Coding Rules - Define the encoding and decoding of test data when
communicating with the SUT
 Time Concepts
 Group defines concepts to constrain and control test behavior with
regard to time
 Timers – Needed to manipulate and control test behavior as well as to
ensure the termination of test cases
 Time Zones – Used to group components within a distributed system,
allowing the comparison of time events within the same time zone
Tuesday, June 16, 2015 6
A Methodology on MDT Development
 Following must consider when transforming system
design model to test design model
 Define a new UML package as the test package of the system
 Import the classes and interfaces from system design package to test
pkg.
 Start with the test architecture and continue with test behavior
specification
 Two categories of Issues regarding test architecture
and test behavior
 Mandatories– Essential for a test design model with U2TP
 E.g. : SUT, Test Context
 Optional– Specific to test requirement and therefore not always
needed
 E.g. : test control, timers
 Additionally, there are optional and mandatory concepts which can
derive directly from existing system designTuesday, June 16, 2015 7
U2TP Concepts & Methodology
on Test Design Model
Development
Tuesday, June 16, 2015 8
A Methodology on MDT Development
 Test Architecture
 Mandatory
 Assign the classes (in Class diagram) or objects (in Object Diagram) to SUT
 Specify test context listing the test attributes and test cases, also possible test
control and test configuration
 Optional
 Group the classes/objects (except SUT) to define test component – Not needed
for Unit Tests
 To Define the order of the test case execution use the test control
 Activity Diagram – one activity means one test case and activity flow is test flow
in test control specification
 Use Case Diagram – one use case means one test case
 Interaction Diagram use for the Test configuration
 Whenever two components exchange message each other, assign a channel
between them.
 Assign time zones if the test system is a distributed one.
 Provide Coding rule information
Tuesday, June 16, 2015 9
A Methodology on MDT Development
 Test Behavior
 Mandatory
 Use Interaction Diagrams for the specification of test case. Change the
instances and assign them with stereotype according to their roles.
 Assign verdicts at the end of each test case specification. Usually this is set to
pass
 Optional
 Define test objectives for each test case that is to be specified
 System behavior which are not used for tests should be taken for default.
 Interactions Diagrams like Sequence Diagrams, State Machiens or Activity
Diargrams should use to define this. Verdict Settings for this is either fail or
inconclusive.
 Use wildcards to catch unexpected behavior
 Timers should be derived from time constraint specifications within a State
Machine or Sequence Diagram
Tuesday, June 16, 2015 10
Test Design Model
Transformation
 Meta-model based transformation
◦ Source meta model is the UML Meta-Model and
Target is the U2TP Meta-Model
 Every mechanism cannot be performed by
transformation such as grouped the test
components or SUT
 Hence use mechanism called test directives and
its meta-model is Test Directive Meta-Model.
 Transformation rules applied to both UML & Test
Directive meta-model to create U2TP meta-
model
 All 3 models are based on MOF (Meta-Object
Facility is an Object Management Group (OMG)
standard for model-driven engineering)
Tuesday, June 16, 2015 11
Test Design Model
Transformation
Tuesday, June 16, 2015 12
Test Design Model
Transformation
 Used aspect-oriented, declarative or
pattern-based language to the
Transformation.
 Transformation Rules used for describe
the correspondence between pattern of
elements in source model and target
model.
 Patterns are reusable definitions.
 When patterns are used in the source of
a rule it is an query, but when it is used
in the target, it acts as a template.
 Tracking relationships associate the
source model elements and the target.
Tuesday, June 16, 2015 13
Test Transformation Example
Tuesday, June 16, 2015 14
Tuesday, June 16, 2015 15

More Related Content

What's hot

EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...IAEME Publication
 
Research issues in object oriented software testing
Research issues in object oriented software testingResearch issues in object oriented software testing
Research issues in object oriented software testingAnshul Vinayak
 
Bab ii testing throughout the software life cycle (yoga)
Bab ii testing throughout the software life cycle (yoga)Bab ii testing throughout the software life cycle (yoga)
Bab ii testing throughout the software life cycle (yoga)sidjdhdjsks
 
Software Test Planning and Design
Software Test Planning and DesignSoftware Test Planning and Design
Software Test Planning and DesignEffOne_Technologies
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycleaidul azmi
 
Benefits Of Implementing Test Management Tools
Benefits Of Implementing Test Management ToolsBenefits Of Implementing Test Management Tools
Benefits Of Implementing Test Management ToolsKovair
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Chapter 2 Testing Throughout the Software Life Cycle
Chapter 2 Testing Throughout the Software Life CycleChapter 2 Testing Throughout the Software Life Cycle
Chapter 2 Testing Throughout the Software Life CycleSiti Deny Nadiroha
 
Testing of Object-Oriented Software
Testing of Object-Oriented SoftwareTesting of Object-Oriented Software
Testing of Object-Oriented SoftwarePraveen Penumathsa
 
Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Rajan Kandel
 
An Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning ApplicationsAn Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning Applicationsbutest
 
Assessment 2 descriptor
Assessment 2  descriptorAssessment 2  descriptor
Assessment 2 descriptorPraneel Chand
 
Odin2018_Minh_ML_Risk_Prediction
Odin2018_Minh_ML_Risk_PredictionOdin2018_Minh_ML_Risk_Prediction
Odin2018_Minh_ML_Risk_PredictionMinh Nguyen
 

What's hot (19)

Ppt19
Ppt19Ppt19
Ppt19
 
Verfication and validation of simulation models
Verfication and validation of simulation modelsVerfication and validation of simulation models
Verfication and validation of simulation models
 
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
 
Research issues in object oriented software testing
Research issues in object oriented software testingResearch issues in object oriented software testing
Research issues in object oriented software testing
 
Bab ii testing throughout the software life cycle (yoga)
Bab ii testing throughout the software life cycle (yoga)Bab ii testing throughout the software life cycle (yoga)
Bab ii testing throughout the software life cycle (yoga)
 
Software Test Planning and Design
Software Test Planning and DesignSoftware Test Planning and Design
Software Test Planning and Design
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycle
 
Benefits Of Implementing Test Management Tools
Benefits Of Implementing Test Management ToolsBenefits Of Implementing Test Management Tools
Benefits Of Implementing Test Management Tools
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Chapter 2 Testing Throughout the Software Life Cycle
Chapter 2 Testing Throughout the Software Life CycleChapter 2 Testing Throughout the Software Life Cycle
Chapter 2 Testing Throughout the Software Life Cycle
 
Testing of Object-Oriented Software
Testing of Object-Oriented SoftwareTesting of Object-Oriented Software
Testing of Object-Oriented Software
 
Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Calibration and validation model (Simulation )
Calibration and validation model (Simulation )
 
An Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning ApplicationsAn Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning Applications
 
Assessment 2 descriptor
Assessment 2  descriptorAssessment 2  descriptor
Assessment 2 descriptor
 
Testing
TestingTesting
Testing
 
MuFinal
MuFinalMuFinal
MuFinal
 
Odin2018_Minh_ML_Risk_Prediction
Odin2018_Minh_ML_Risk_PredictionOdin2018_Minh_ML_Risk_Prediction
Odin2018_Minh_ML_Risk_Prediction
 
Test Techniques
Test TechniquesTest Techniques
Test Techniques
 
SE18_Lec 03_ RUP
SE18_Lec 03_ RUPSE18_Lec 03_ RUP
SE18_Lec 03_ RUP
 

Viewers also liked

Displays for advertising
Displays for advertisingDisplays for advertising
Displays for advertisingSerigrafiarte
 
‫فايروس الاختصارات
‫فايروس الاختصارات ‫فايروس الاختصارات
‫فايروس الاختصارات Groh-alroh
 
Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015kiptisia
 
Military service in Swaziland
Military service in SwazilandMilitary service in Swaziland
Military service in SwazilandDerik Lu
 
Dracula Presentation with Answers
Dracula Presentation with AnswersDracula Presentation with Answers
Dracula Presentation with Answersalexteacherproa
 
sự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoáisự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoáimenngan
 
SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表Yi Tseng
 
su vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doaisu vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doaimenngan
 
karakteristik komponen komponenn
karakteristik komponen komponennkarakteristik komponen komponenn
karakteristik komponen komponennrosmariasinurat19
 
Bitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array ProcessorBitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array ProcessorAsanka Dilruk
 
principals and therapeutics of antimicrobials
principals and therapeutics of antimicrobialsprincipals and therapeutics of antimicrobials
principals and therapeutics of antimicrobialsvinodmed
 

Viewers also liked (20)

Day 6
Day 6Day 6
Day 6
 
Displays for advertising
Displays for advertisingDisplays for advertising
Displays for advertising
 
‫فايروس الاختصارات
‫فايروس الاختصارات ‫فايروس الاختصارات
‫فايروس الاختصارات
 
Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015
 
Military service in Swaziland
Military service in SwazilandMilitary service in Swaziland
Military service in Swaziland
 
Dracula Presentation with Answers
Dracula Presentation with AnswersDracula Presentation with Answers
Dracula Presentation with Answers
 
BitonicSortSIMD
BitonicSortSIMDBitonicSortSIMD
BitonicSortSIMD
 
sự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoáisự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoái
 
Evaluation question 5
Evaluation question 5Evaluation question 5
Evaluation question 5
 
Potassium humte
Potassium humtePotassium humte
Potassium humte
 
SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表
 
Evaluation question 5
Evaluation question 5Evaluation question 5
Evaluation question 5
 
销售人员手册080905
销售人员手册080905销售人员手册080905
销售人员手册080905
 
su vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doaisu vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doai
 
La comida marroquí
La comida marroquíLa comida marroquí
La comida marroquí
 
HydraFS
HydraFSHydraFS
HydraFS
 
La ciudad de tanger
La ciudad de tanger La ciudad de tanger
La ciudad de tanger
 
karakteristik komponen komponenn
karakteristik komponen komponennkarakteristik komponen komponenn
karakteristik komponen komponenn
 
Bitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array ProcessorBitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array Processor
 
principals and therapeutics of antimicrobials
principals and therapeutics of antimicrobialsprincipals and therapeutics of antimicrobials
principals and therapeutics of antimicrobials
 

Similar to Model-Driven Testing with UML 2.0

Generation and Optimization of Test cases for Object-Oriented Software Using ...
Generation and Optimization of Test cases for Object-Oriented Software Using ...Generation and Optimization of Test cases for Object-Oriented Software Using ...
Generation and Optimization of Test cases for Object-Oriented Software Using ...cscpconf
 
Prioritizing Test Cases for Regression Testing A Model Based Approach
Prioritizing Test Cases for Regression Testing A Model Based ApproachPrioritizing Test Cases for Regression Testing A Model Based Approach
Prioritizing Test Cases for Regression Testing A Model Based ApproachIJTET Journal
 
Modeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDrawModeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDrawGregory Solovey
 
Testify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeedTestify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeedMinh Nguyen
 
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...IRJET Journal
 
How To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test AutomationHow To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test AutomationRanorex
 
types of testing with descriptions and examples
types of testing with descriptions and examplestypes of testing with descriptions and examples
types of testing with descriptions and examplesMani Deepak Choudhry
 
12 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 200912 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 2009Pepe
 
EXTRACTING THE MINIMIZED TEST SUITE FOR REVISED SIMULINK/STATEFLOW MODEL
EXTRACTING THE MINIMIZED TEST SUITE FOR REVISED SIMULINK/STATEFLOW MODELEXTRACTING THE MINIMIZED TEST SUITE FOR REVISED SIMULINK/STATEFLOW MODEL
EXTRACTING THE MINIMIZED TEST SUITE FOR REVISED SIMULINK/STATEFLOW MODELijaia
 
Introduction to testing.
Introduction to testing.Introduction to testing.
Introduction to testing.Jithinctzz
 
Model Driven Developing & Model Based Checking: Applying Together
Model Driven Developing & Model Based Checking: Applying TogetherModel Driven Developing & Model Based Checking: Applying Together
Model Driven Developing & Model Based Checking: Applying TogetherIosif Itkin
 
Report
ReportReport
Reportbutest
 
Giddings
GiddingsGiddings
Giddingsanesah
 
Chapter 3 - The Generic Test Automation Architecture
Chapter 3 - The Generic Test Automation Architecture Chapter 3 - The Generic Test Automation Architecture
Chapter 3 - The Generic Test Automation Architecture Neeraj Kumar Singh
 
Cs6502 ooad-cse-vst-au-unit-v dce
Cs6502 ooad-cse-vst-au-unit-v dceCs6502 ooad-cse-vst-au-unit-v dce
Cs6502 ooad-cse-vst-au-unit-v dcetagoreengineering
 
Configuration Navigation Analysis Model for Regression Test Case Prioritization
Configuration Navigation Analysis Model for Regression Test Case PrioritizationConfiguration Navigation Analysis Model for Regression Test Case Prioritization
Configuration Navigation Analysis Model for Regression Test Case Prioritizationijsrd.com
 

Similar to Model-Driven Testing with UML 2.0 (20)

Generation and Optimization of Test cases for Object-Oriented Software Using ...
Generation and Optimization of Test cases for Object-Oriented Software Using ...Generation and Optimization of Test cases for Object-Oriented Software Using ...
Generation and Optimization of Test cases for Object-Oriented Software Using ...
 
Prioritizing Test Cases for Regression Testing A Model Based Approach
Prioritizing Test Cases for Regression Testing A Model Based ApproachPrioritizing Test Cases for Regression Testing A Model Based Approach
Prioritizing Test Cases for Regression Testing A Model Based Approach
 
Formal meth
Formal methFormal meth
Formal meth
 
Modeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDrawModeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDraw
 
Testify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeedTestify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeed
 
Ijsea04031006
Ijsea04031006Ijsea04031006
Ijsea04031006
 
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
 
How To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test AutomationHow To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test Automation
 
types of testing with descriptions and examples
types of testing with descriptions and examplestypes of testing with descriptions and examples
types of testing with descriptions and examples
 
12 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 200912 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 2009
 
EXTRACTING THE MINIMIZED TEST SUITE FOR REVISED SIMULINK/STATEFLOW MODEL
EXTRACTING THE MINIMIZED TEST SUITE FOR REVISED SIMULINK/STATEFLOW MODELEXTRACTING THE MINIMIZED TEST SUITE FOR REVISED SIMULINK/STATEFLOW MODEL
EXTRACTING THE MINIMIZED TEST SUITE FOR REVISED SIMULINK/STATEFLOW MODEL
 
Introduction to testing.
Introduction to testing.Introduction to testing.
Introduction to testing.
 
Model Driven Developing & Model Based Checking: Applying Together
Model Driven Developing & Model Based Checking: Applying TogetherModel Driven Developing & Model Based Checking: Applying Together
Model Driven Developing & Model Based Checking: Applying Together
 
Report
ReportReport
Report
 
Giddings
GiddingsGiddings
Giddings
 
Test NG Framework Complete Walk Through
Test NG Framework Complete Walk ThroughTest NG Framework Complete Walk Through
Test NG Framework Complete Walk Through
 
Chapter 3 - The Generic Test Automation Architecture
Chapter 3 - The Generic Test Automation Architecture Chapter 3 - The Generic Test Automation Architecture
Chapter 3 - The Generic Test Automation Architecture
 
Pilot Model Based Testing
Pilot Model Based TestingPilot Model Based Testing
Pilot Model Based Testing
 
Cs6502 ooad-cse-vst-au-unit-v dce
Cs6502 ooad-cse-vst-au-unit-v dceCs6502 ooad-cse-vst-au-unit-v dce
Cs6502 ooad-cse-vst-au-unit-v dce
 
Configuration Navigation Analysis Model for Regression Test Case Prioritization
Configuration Navigation Analysis Model for Regression Test Case PrioritizationConfiguration Navigation Analysis Model for Regression Test Case Prioritization
Configuration Navigation Analysis Model for Regression Test Case Prioritization
 

More from Asanka Dilruk

Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs Asanka Dilruk
 
Agile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical StudyAgile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical StudyAsanka Dilruk
 
Oracle DB Performance Tuning Tips
Oracle DB Performance Tuning TipsOracle DB Performance Tuning Tips
Oracle DB Performance Tuning TipsAsanka Dilruk
 
Understanding Android Security
Understanding Android SecurityUnderstanding Android Security
Understanding Android SecurityAsanka Dilruk
 
Windows OS Architecture in Summery
Windows OS Architecture in SummeryWindows OS Architecture in Summery
Windows OS Architecture in SummeryAsanka Dilruk
 

More from Asanka Dilruk (6)

oracle tables
oracle tablesoracle tables
oracle tables
 
Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs
 
Agile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical StudyAgile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical Study
 
Oracle DB Performance Tuning Tips
Oracle DB Performance Tuning TipsOracle DB Performance Tuning Tips
Oracle DB Performance Tuning Tips
 
Understanding Android Security
Understanding Android SecurityUnderstanding Android Security
Understanding Android Security
 
Windows OS Architecture in Summery
Windows OS Architecture in SummeryWindows OS Architecture in Summery
Windows OS Architecture in Summery
 

Model-Driven Testing with UML 2.0

  • 1. Presented By : Dilruk G.A. (148209B) Jagoda S.D. (148214K) Tuesday, June 16, 2015 1 Model-Driven Testing with UML 2.0 Zhen Ru Dai Fraunhofer FOKUS, Kaiserin-Augusta-Allee 31, 10589 Berlin, Germany dai@fokus.fraunhofer.de
  • 2. Index …  Introduction  Approaches to Model-Driven Testing  The UML 2.0 Testing Profile (U2TP)  A Methodology on Model-Driven Test Development  Test Design Model Transformation  Summary Tuesday, June 16, 2015 2
  • 3. Introduction  The Model-Driven Architecture (MDA) is not only about system modeling.  The early integration of testing into the development process becomes more and more important.  U2TP bridges the gap between designers and testers by providing a means for using UML for both system modeling and test specification. Tuesday, June 16, 2015 3
  • 4. Approaches to Model-Driven Testing Tuesday, June 16, 2015 4
  • 5. The UML 2.0 Testing Profile (U2TP)  The Architecture Concepts  System Under Test (SUT) – One or More Object  Test Components – Objects within test system  Test Context - Message between components  Scheduler - Control the test execution and test components  The Behavior Concepts  State Machines and Activity Diagrams - define test stimuli, observations, test control/invocations, coordination and actions  Test Case – Normative test behavior is specified  Validation Action - performed by a local test component to inform the arbiter about its local test verdict  Test Verdict – Result of the executed test (pass, inconclusive, etc.) Tuesday, June 16, 2015 5
  • 6. The UML 2.0 Testing Profile (U2TP)  Test Data Concepts  Wildcards– Handle unexpected events, or events containing many different values  Data pools – Associated with test context and include concrete test data  Data Selectors - Operations to retrieve test data from the data pool or data partitions  Coding Rules - Define the encoding and decoding of test data when communicating with the SUT  Time Concepts  Group defines concepts to constrain and control test behavior with regard to time  Timers – Needed to manipulate and control test behavior as well as to ensure the termination of test cases  Time Zones – Used to group components within a distributed system, allowing the comparison of time events within the same time zone Tuesday, June 16, 2015 6
  • 7. A Methodology on MDT Development  Following must consider when transforming system design model to test design model  Define a new UML package as the test package of the system  Import the classes and interfaces from system design package to test pkg.  Start with the test architecture and continue with test behavior specification  Two categories of Issues regarding test architecture and test behavior  Mandatories– Essential for a test design model with U2TP  E.g. : SUT, Test Context  Optional– Specific to test requirement and therefore not always needed  E.g. : test control, timers  Additionally, there are optional and mandatory concepts which can derive directly from existing system designTuesday, June 16, 2015 7
  • 8. U2TP Concepts & Methodology on Test Design Model Development Tuesday, June 16, 2015 8
  • 9. A Methodology on MDT Development  Test Architecture  Mandatory  Assign the classes (in Class diagram) or objects (in Object Diagram) to SUT  Specify test context listing the test attributes and test cases, also possible test control and test configuration  Optional  Group the classes/objects (except SUT) to define test component – Not needed for Unit Tests  To Define the order of the test case execution use the test control  Activity Diagram – one activity means one test case and activity flow is test flow in test control specification  Use Case Diagram – one use case means one test case  Interaction Diagram use for the Test configuration  Whenever two components exchange message each other, assign a channel between them.  Assign time zones if the test system is a distributed one.  Provide Coding rule information Tuesday, June 16, 2015 9
  • 10. A Methodology on MDT Development  Test Behavior  Mandatory  Use Interaction Diagrams for the specification of test case. Change the instances and assign them with stereotype according to their roles.  Assign verdicts at the end of each test case specification. Usually this is set to pass  Optional  Define test objectives for each test case that is to be specified  System behavior which are not used for tests should be taken for default.  Interactions Diagrams like Sequence Diagrams, State Machiens or Activity Diargrams should use to define this. Verdict Settings for this is either fail or inconclusive.  Use wildcards to catch unexpected behavior  Timers should be derived from time constraint specifications within a State Machine or Sequence Diagram Tuesday, June 16, 2015 10
  • 11. Test Design Model Transformation  Meta-model based transformation ◦ Source meta model is the UML Meta-Model and Target is the U2TP Meta-Model  Every mechanism cannot be performed by transformation such as grouped the test components or SUT  Hence use mechanism called test directives and its meta-model is Test Directive Meta-Model.  Transformation rules applied to both UML & Test Directive meta-model to create U2TP meta- model  All 3 models are based on MOF (Meta-Object Facility is an Object Management Group (OMG) standard for model-driven engineering) Tuesday, June 16, 2015 11
  • 13. Test Design Model Transformation  Used aspect-oriented, declarative or pattern-based language to the Transformation.  Transformation Rules used for describe the correspondence between pattern of elements in source model and target model.  Patterns are reusable definitions.  When patterns are used in the source of a rule it is an query, but when it is used in the target, it acts as a template.  Tracking relationships associate the source model elements and the target. Tuesday, June 16, 2015 13
  • 15. Tuesday, June 16, 2015 15

Editor's Notes

  1. If I ask a question that how many of you aware about UML system modeling, probably all of you raised your hands saying we know. But when I ask how many of you aware about UML test profile and how to use UML for test modeling, most of you may not aware about this. So in this paper the main contribution is that describing a methodology for how to apply UML 2.0 Test profile concepts to an existing UML system design model effectively in order to retrieve a test design model. So The MDA is not only about system modelling But also can be applied to test modelling. As in the software development process steps, testing and test code generation is done at the last, but it is worth to have early integration of testing into development process. This allow reduction of time and cost. So from the UML 2.0 version it was introduced UML test profile to model system testing, U2TP bridges ,..
  2. platform independent system design models (PIM) platform specific system design models (PSM) platform independent test design model (PIT) platform specific test design model (PST)
  3. The UML 2.0 Testing Profile provides concepts to develop test specifications and test models for black-box testing. U2TP introduce four main logical concepts which are architeture concepts, behavir concepts, test data concepts and time concepts. Together, these concepts define a modeling language for visualizing, specifying,analyzing, constructing and documenting a test system. One or more objects can be identified as the System Under Test (SUT). Test components are objects within a test system which can communicate with the SUT or other components to realize the test behavior. Test context ….. The scheduler controls the test execution and test components. It is responsible for the creation of test components, a synchronized start of the different test components, and the detection of test case termination.